I can not start a .jar-file by double-clicking, only from command-line in Windows

by Jonas   Last Updated September 11, 2019 20:01 PM - source

I have a Java application in a .jar-file. I can start it by typing java -jar myapp.jar and the application starts, but if I double-click on the .jar-file, nothing happens. What can be wrong? How can I fix this? I use Windows Vista.

I have tried on another computer and it works fine there. It must be something with my Java configuration. I have another question with a similar problem on I can not start Eclipse anymore.



Answers 2


I had the same problem and finally solved it, download the jdk1.5 upgrade 3.
I had the exact same problem, even after reinstall, I was getting the main class not found error.
After installing jdk1.5 upgrade 3. Problem solved!

admintech
admintech
May 28, 2010 08:38 AM

I had the same problem with Windows 10 and it turned out to be due to another program "stealing" the .jar file association.

Johann N. Löfflmann has investigated this problem and has a solution using his program jarfix.exe

see the site: http://johann.loefflmann.net/en/software/jarfix

for his analysis and to download the fix.

Roger Schvaneveldt
Roger Schvaneveldt
September 11, 2019 19:20 PM

Related Questions


Windows 7 Jar not running with double click

Updated July 08, 2018 16:01 PM