Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Double clicking .jar file does nothing!

920046Oct 3 2012 — edited Oct 9 2012
Hello i am wondering, how to run a .jar file by double clicking it?
After creating the jar file and by typing javaw.exe -jar ledger.jar in command prompt in windows 7 works fine for my swing application.
I created a .bat file which has javaw.exe -jar ledger.jar also works fine.
But when i double clicking the ledger.jar is not working, not giving any error, not even doing anything.
I tried associating .jar file with java or javaw then also nothing happens.

My questions are:

1) What i have to do to execute the .jar file by double clicking it?
2) Why java is not so user friendly to the end users especially in Desktop Applications?

Thanks in advance.

Note: OS - Windows 7 64 bit
JRE - 32 bit in Program files (x86) folder version 7

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 6 2012
Added on Oct 3 2012
3 comments
10,160 views