Home java running jar from the command line

running jar from the command line

Author

Date

Category

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


Answer 1, authority 100%

To run in the console, write:
java -jar /home/user/jar_name.jar – for Linux
java -jar C: \ Users \ user \ jar_name.jar – for Windows

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions