Java Question

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

Java Question

Post by sagioto » 14 Jan 2013, 16:38


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?


User avatar
The Source
Posts: 18541
Joined: 16 Nov 2011, 08:59
Location: Taipei

Re: Java Question

Post by rednoah » 14 Jan 2013, 17:37

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