1

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

1 Answer 1

2

Since it works with java -jar ..., it can be safely assumed that java can 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.

Sign up to request clarification or add additional context in comments.

2 Comments

Jarfix worked fine..but still i have no clue what happened!! Will u care to elaborate.
@AnirudhChhangani My best guess is that you updated Java (manually or automatically) and that might have screwed up something. I honestly can not give a more precise answer because that would be just guessing (which is worthless). I'm glad it worked, though :) .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.