running the jar from the command line


How to launch a java application. jar file from the command line. It is already there, you need to run it. do not compile and run the source file (javac and java), but run the finished file (application) jar

Author: Devel0, 2017-11-15

1 answers

To run it in the console, enter:
java -jar /home/user/jar_name.jar - for linux
java -jar C:\Users\user\jar_name.jar - for Windows

 7
Author: Bleser, 2017-11-15 04:10:47