It is currently 07 Jul 2021, 21:53
   
Text Size

Java Question [Solved]

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Java Question [Solved]

Postby Pasty » 24 Jan 2011, 15:47

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.
Pasty
 
Posts: 3
Joined: 24 Jan 2011, 15:36
Has thanked: 0 time
Been thanked: 0 time

Return to Forge

Who is online

Users browsing this forum: No registered users and 12 guests


Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 12 guests

Login Form