Page 1 of 1

I have a problem.

PostPosted: 15 Aug 2012, 17:36
by Questioner
I have used Forge before, and I really enjoy it. However, due to updating my laptops's OS (to Lubuntu 12.04), it has not been working for a while, and I don't know what to do.

Now, I cant remember which version forge was at before I updated, but I was able to run it by executing the .JAR file, which no-longer works. I get I am supposed to run the .SH file, but Forge does not run, and I get this, in terminal and in forge.log


java.lang.NoSuchMethodError: method java.util.regex.Pattern.quote with signature (Ljava.lang.String;)Ljava.lang.String; was not found.
at forge.util.FileSection.parse(FileSection.java:60)
at forge.card.CardEdition$Reader.read(CardEdition.java:245)
at forge.card.CardEdition$Reader.read(CardEdition.java:234)
at forge.util.StorageReaderFile.readAll(StorageReaderFile.java:75)
at forge.util.StorageView.<init>(StorageView.java:46)
at forge.card.EditionCollection.<init>(EditionCollection.java:30)
at forge.model.FModel.<init>(FModel.java:134)
at forge.model.FModel.<clinit>(FModel.java:70)
at java.lang.Class.initializeClass(libgcj.so.11)
at forge.view.Main.main(Main.java:51)

Has anyone got any ideas on what I can do to get past this?

Re: I have a problem.

PostPosted: 19 Aug 2012, 13:38
by slapshot5
Can you post the output of:

which java

and

java -version

Re: I have a problem.

PostPosted: 19 Aug 2012, 19:41
by Questioner
Which java gives /usr/bin/java

java -version gives

java version "1.5.0"
gij (GNU libgcj) version 4.5.4

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I do have OpenJDK 6 and 7 installed.

Re: I have a problem.

PostPosted: 19 Aug 2012, 20:21
by friarsol
Questioner wrote:Which java gives /usr/bin/java

java -version gives

java version "1.5.0"
gij (GNU libgcj) version 4.5.4

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I do have OpenJDK 6 and 7 installed.
Well, it looks like the JRE being used is Version 5 instead of Version 6. I don't think Forge has supported Version 5 in a few years.

Re: I have a problem.

PostPosted: 19 Aug 2012, 20:27
by Questioner
Ah. That would explain it.

Can anyone tell me how to update to version 6?

EDIT: Nope, can't find the package in the software centre. Also, I thought the JDK included JRE.
EDIT2: Well, trying from the java website doesn't work at all.

Re: I have a problem.

PostPosted: 19 Aug 2012, 23:36
by friarsol
Try: sudo apt-get install sun-java6-jre

Re: I have a problem.

PostPosted: 20 Aug 2012, 13:19
by Questioner
IT WORKS!

What I ended up needing to do was to use the sudo update-alternatives --config java
command to change the version of java that was being used. Forge now works.

Thanks for the help!