It is currently 26 Apr 2024, 06:51
   
Text Size

Startup error using Ubuntu

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

Startup error using Ubuntu

Postby 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!
ThanosIsKing
 
Posts: 22
Joined: 24 Nov 2009, 19:21
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby DennisBergkamp » 24 Nov 2009, 19:41

Yeah, try running it through the terminal:

javac -jar run-forge.jar

Should work :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby 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.
User avatar
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

Postby 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.
ThanosIsKing
 
Posts: 22
Joined: 24 Nov 2009, 19:21
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby DennisBergkamp » 24 Nov 2009, 20:17

Oops! Try "java -jar run-forge.jar" instead.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby ThanosIsKing » 24 Nov 2009, 20:23

That worked! Thanks muchly!
ThanosIsKing
 
Posts: 22
Joined: 24 Nov 2009, 19:21
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby DennisBergkamp » 24 Nov 2009, 20:33

Nice! Yes, I messed up that first time, javac is for compiling :roll:
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Startup error using Ubuntu

Postby 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:
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 ;))
___

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


Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 184 guests


Who is online

In total there are 185 users online :: 1 registered, 0 hidden and 184 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Google [Bot] and 184 guests

Login Form