Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Make .jar file execute on double click

828296Jan 4 2011 — edited Jan 6 2011
Hello all,

I've created a .jar file and it executes normally when I type java -jar BasicCalculator.jar in the command window. When I double click the .jar file, though, nothing happens. The computer recognizes that the file is an Executable Jar File, and other .jar files that I've downloaded from online work fine when double clicked.

Thanks in advance, help would be greatly appreciated.

http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs1395.snc4/164788_484405619388_732309388_6068183_2184151_n.jpg

This is what appears when I double click the BasicCalculator.jar file. The window pops up for a split second, and I managed to get this screenshot after a few tries.
This post has been answered by User_64CKJ on Jan 4 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 3 2011
Added on Jan 4 2011
8 comments
1,447 views