Not too long ago I asked a question about distribution of java jar files…that was perfectly answered and my jar files were completely working fine…but in a past few days they have stopped working directly by double clicking and i have to run it through the command java -jar .jar
what could be the possible reason behind this…i mean i have already included the manifest file and the main classes have also been defined…. I have really no idea whats going on here!!
previously asked question
Distributing java application
Not too long ago I asked a question about distribution of java jar files…that
Share
Since it works with
java -jar ..., it can be safely assumed thatjavacan be accessed via the classpath.Check that the .jar file type is still associated with Java. How to do this depends on your operating system.
If this doesn’t work, try Jarfix. It helped me once with exactly the same problem.
PS: Jarfix works only on Windows.