When I download a .jar file to say install a mod to minecraft and double click it, it doesn't run. The loading wheel goes for like two seconds and then stops, and nothing else happens. The .jar I know is set up right because it runs through cmd with the command
cd "wherever the file is"
java -jar "file name".jar
So I've already tried to run it with the default program set as javaw.exe in the java\jdk1.7.0_25\jre\bin. Same where nothing happens. So the file association is set to the right place. I am at a loss here.
It isn't so bad since I can still run them through cmd, but when I get to the part in the book about jars, I want to be able to run it through the Windows Explorer GUI, which is like half the benefit of using .jar files that I can see.
Is it possibly a registry error? I have seen a lot of questions specifically about this problem, but most of them it seems were problems with setting up the .jar, which I didn't do, and I don't think that is the case here.
I have Windows Vista 64bit.
If I wasn't specific enough, feel free to ask.
javaw
. – Labichejavaw
from the command line the same way you runjava
? Maybe it'll spit out a helpful error message about why it's not working. – Labiche-jar
option if you pass it a JAR file. Look at the documentation: docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html – Labiche