Page 1 of 1

Java Question

Posted: 14 Jan 2013, 16:38
by sagioto
Hi,


I wanted to know how come your Jar starts the program when I double click on it and my created jar (containing main class entry in the manifest) does not?

Is there another trick you are using?

thanks

Re: Java Question

Posted: 14 Jan 2013, 17:37
by rednoah
Nope, that's it. You'll just need to have Main-Class in the manifest and .jar extension has to be associated with Java.

Just run in cmdline and check console output:

Code: Select all

java -jar test.jar