Answers for "execute jar file"

0

compile jar file command

jar cvf example.jar *
Posted by: Guest on September-24-2020
1

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>
Posted by: Guest on March-04-2021
-3

run jar file

java -jar yourFile.jar
Posted by: Guest on August-16-2020
0

run jar file with different jre

First, go to the location of the java installation file. By default, this is:
C:Program FilesJava...
Open the folder of the java version you want and go to the bin folder.
Copy the directory your at then go to your command line. 
Syntax: (%PATH% is path you copied):
"%PATH%/java.exe" [javaArgs] [filePath] [yourCodeArgs]
Posted by: Guest on March-20-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language