Sunday, 1 June 2014

How can I execute a .jar file from the terminal (or) how to show command line executable jar file?

There was a program that I used that made runnable .jar files for console lines is not working.

The command Line is:
java -jar filename.jar

Example for successfully creating executable jar but we have to clicking .jar file it no action for jar file.
so you have run our jar file for 

Open command prompt

Goto your jar file directory for example cd e:/workspace/

Then  type a command : java -jar Simplecalc.jar then enter

Now we have showing our jar file acction

No comments:

Post a Comment