Startup error using Ubuntu
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Startup error using Ubuntu
by ThanosIsKing » 24 Nov 2009, 19:27
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!
Thanks and keep up the great work!
- ThanosIsKing
- Posts: 22
- Joined: 24 Nov 2009, 19:21
- Has thanked: 0 time
- Been thanked: 0 time
Re: Startup error using Ubuntu
by DennisBergkamp » 24 Nov 2009, 19:41
Yeah, try running it through the terminal:
javac -jar run-forge.jar
Should work
javac -jar run-forge.jar
Should work
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Startup error using Ubuntu
by Rob Cashwalker » 24 Nov 2009, 19:53
in other words, skip WINE, and let the native Java installed in UBuntu handle the JAR file. The EXE isn't necessary.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Startup error using Ubuntu
by ThanosIsKing » 24 Nov 2009, 19:57
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.
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.
- ThanosIsKing
- Posts: 22
- Joined: 24 Nov 2009, 19:21
- Has thanked: 0 time
- Been thanked: 0 time
Re: Startup error using Ubuntu
by DennisBergkamp » 24 Nov 2009, 20:17
Oops! Try "java -jar run-forge.jar" instead.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
- ThanosIsKing
- Posts: 22
- Joined: 24 Nov 2009, 19:21
- Has thanked: 0 time
- Been thanked: 0 time
Re: Startup error using Ubuntu
by DennisBergkamp » 24 Nov 2009, 20:33
Nice! Yes, I messed up that first time, javac is for compiling
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Startup error using Ubuntu
by silly freak » 24 Nov 2009, 21:59
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:
wine is useful, but pointless with java^^
and one last note don't get trapped in using
(I realize that it's already working for you, interpret this as a proactive answer to later, similar problems )
- Code: Select all
sudo gedit /etc/environment
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
- Code: Select all
cd ~/forge
java -jar run-forge.jar
(I realize that it's already working for you, interpret this as a proactive answer to later, similar problems )
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 184 guests