Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run jar file command line

java -jar <jar-file-name>.jar
Comment

compile jar file command

jar cvf example.jar *
Comment

open jar file with command prompt

For Linux:

java -jar <filename>.jar
Comment

how to run jar from command line

#Run jar from cmd
java -jar <jar-file-name>.jar
#Run spring boot app
mvn spring-boot:run

Comment

how to run java program with external jar files in command prompt

javac -cp "<File-Path>.jar;." <filename>.java
java -cp "<File-Path>.jar;." <filename>
Comment

PREVIOUS NEXT
Code Example
Shell :: revert vs reset vs restore 
Shell :: getting started with git 
Shell :: split big file into smaller parts 
Shell :: count number of lines of code in git repo 
Shell :: djanog shell change password 
Shell :: How do I hide the path in command line prompt on Windows? 
Shell :: install netbeans 8.2 ubuntu 20.04 
Shell :: curl: (7) Failed to connect to localhost port 9200: Connection refused 
Shell :: install pyenv 
Shell :: snap install audacity 
Shell :: pm2 typescript 
Shell :: git checkout to previous commit 
Shell :: a script that compiles a C file but does not link 
Shell :: edit iptables 
Shell :: bash create folder with spaces 
Shell :: windows show proxy settings 
Shell :: bash htop 
Shell :: “git force rebase abort” 
Shell :: timestamp in bash 
Shell :: npm install custom registry 
Shell :: expo upgrade reset 
Shell :: find java home 
Shell :: install nomad 
Shell :: open wine directory mac 
Shell :: bash temporary file 
Shell :: `Cannot autolaunch D-Bus without X11 $DISPLAY` 
Shell :: shell script in jenkins pipeline 
Shell :: show hidden files linux 
Shell :: docker compose example 
Shell :: how to unstage changes in git 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =