Whenever I try to double-click a .jar file, it gives me a message saying that it can't locate or load the main class of the file. However, if I try to open the .jar file in the command line like this:
java -jar myfile.jar
Then, it runs. Is it something wrong the the system variables or something? I'm having a lot of trouble with java and uninstalling and reinstalling it again doesn't seem to solve it.
Thanks in advance!
EXTRA INFO: I'm running on Win7 64-bit, with both JDK 7 Update 9 (64-bit) and Java 7 Update 9 (64-bit). It also used to run .jar files just by double-clicking before, I don't know what happened.