1

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.

1 Answer 1

1

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!

3
  • Is this the only alternative? 1.5_u3 is very old.
    – Jonas
    Commented May 28, 2010 at 8:42
  • If you're using Win XP (and maybe some earlier versions), try this: Start -> My Computer -> Tools -> Folder Options... -> File Types. There will be a list of extensions, so go to JAR. If it opens with javaw, click Change and select "Java(TM) 2 Platform Standard Edition binary", and all should be well. I had the same problem, but this fixed it.
    – admintech
    Commented May 28, 2010 at 8:49
  • 1
    I uninstallad all my jre and jdk, and reinstalled the latest version, that solved the problem. Thanks.
    – Jonas
    Commented Jun 22, 2010 at 15:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .