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.
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!
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.