Java Question

Any questions? Need some help?
Post Reply
sagioto
Posts: 1
Joined: 14 Jan 2013, 16:30

Java Question

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java Question

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply