Minecraft – I can’t run jar files on the Windows 7 PC

minecraft-java-editiontechnical-issues

OK, so I can't run Java executable files of any sort on my Windows 7 PC. The one in particular I'm trying to use is the Forge installer for Minecraft. Normally, an installer window should open when I double click the file. I have Java installed and I set it to open with Java (TM) SE Binary but all that does is make the command prompt window open and then close again instantly. I have tried using the command method to open it but then it comes up with the error saying Error:

Unable to access jarfile runable_jar.jar

I have downloaded the JDK file because I heard that was something I needed, but I'm not sure where to put it so it will do what it is supposed to.

Was there something else I needed to download or is there something wrong with the version of Java I'm using (I checked and it's at the latest update). By the way I have a Windows 7 64 bit if that helps.

Best Answer

OK, here are some things to check:

Make sure to run the command java -jar [filename].jar Replace [filename] with whatever the name of the jar file you want to open is. You have to be careful that you add the .jar at the end, or it will produce the error you said.

On the Forge download page, did you download the Latest version or the Recommended version? If you installed the latest, you might want to give the recommended version a shot.

Another thing on the side is that the JDK (Java Development Kit) should not be needed here, just the JRE (Java Runtime Environment). Make sure you have that.