Page 1 of 1

Java Question [Solved]

PostPosted: 24 Jan 2011, 15:47
by Pasty
I'm trying to run Forge on a portable install of Java. My issue is that the compiled forge.jar file doesn't run via java.exe in my JRE directory. I tried this on a machine where the JRE was installed regularly and still could not run the .jar through java.exe. The odd thing is that the .jar runs fine if I double click it. This led me to believe that java.exe isn't what .jar files are associated with (as I had been told) so I proceeded to try just about every other exe file in the JRE directory and still no luck.

I know this is more of a Java question than one about Forge, but I'm hoping someone can help.

EDIT: Just tinkered a bit a figured it out. Apparently I needed the command line argument "-jar" in order to tell java that the file was a jar file. I had been just dragging the jar into java.exe via the windows interface previously.