Page 1 of 1

Startup error using Ubuntu

PostPosted: 24 Nov 2009, 19:27
by ThanosIsKing
Hey all. I want to say that I love the program, and I had many fun hours playing it prior to this past summer, when I switched my OS over to Ubunbu. Even though I've been using it for a while now, I still consider myself an amateur when it comes to the finer points of the OS. More specifically, when I try to run MTG Forge using WINE, I get a message saying that Java is not detected, despite having pretty much every conceivable permutation of the most up-to-date version of Java installed on this thing. What am I doing wrong? Do I need to start MTG Forge through the terminal? If so, how exactly do I do that? Or is there something extra I need to do with WINE in order to get MTG Forge to work?

Thanks and keep up the great work!

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 19:41
by DennisBergkamp
Yeah, try running it through the terminal:

javac -jar run-forge.jar

Should work :)

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 19:53
by Rob Cashwalker
in other words, skip WINE, and let the native Java installed in UBuntu handle the JAR file. The EXE isn't necessary.

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 19:57
by ThanosIsKing
Dennis: Tried that. Made a little bit of progress. Apparently the terminal didn't recognize that I had installed Java 6 through the Add/Remove Applications route. So I installed Java 6 using the terminal (it also didn't recognize the javac command). However, I'm now getting an error in the terminal that states:

javac: invalid flag: -jar
Usage: javac <options> <source files>
use -help for a list of possible options

So I input javac -help, and I don't see the -jar option anywhere. Not under javac -help, and not under javac -X (which is the "advanced" options).

Rob: Trying multiple times to open the run-forge.jar using both OpenJDK Java 6 Runtime and Sun Java 6 Runtime. Nothing happens when attempting either.

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 20:17
by DennisBergkamp
Oops! Try "java -jar run-forge.jar" instead.

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 20:23
by ThanosIsKing
That worked! Thanks muchly!

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 20:33
by DennisBergkamp
Nice! Yes, I messed up that first time, javac is for compiling :roll:

Re: Startup error using Ubuntu

PostPosted: 24 Nov 2009, 21:59
by silly freak
if you can't access java without specifying the full path, you don't have it in your path. you could solve that by adding your <<java>>/bin directory in /etc/environment:
Code: Select all
sudo gedit /etc/environment
and then append the java directory

wine is useful, but pointless with java^^

and one last note don't get trapped in using
Code: Select all
java -jar ~/forge/run-forge.jar
instead, use
Code: Select all
cd ~/forge
java -jar run-forge.jar
otherwise, the needed forge.properties is not found ;)

(I realize that it's already working for you, interpret this as a proactive answer to later, similar problems ;))