It is currently 25 Aug 2025, 11:14
   
Text Size

I have a problem.

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

I have a problem.

Postby Questioner » 15 Aug 2012, 17:36

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?
Questioner
 
Posts: 10
Joined: 14 Apr 2012, 17:31
Has thanked: 2 times
Been thanked: 0 time

Re: I have a problem.

Postby slapshot5 » 19 Aug 2012, 13:38

Can you post the output of:

which java

and

java -version
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: I have a problem.

Postby Questioner » 19 Aug 2012, 19:41

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.
Questioner
 
Posts: 10
Joined: 14 Apr 2012, 17:31
Has thanked: 2 times
Been thanked: 0 time

Re: I have a problem.

Postby friarsol » 19 Aug 2012, 20:21

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: I have a problem.

Postby Questioner » 19 Aug 2012, 20:27

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.
Questioner
 
Posts: 10
Joined: 14 Apr 2012, 17:31
Has thanked: 2 times
Been thanked: 0 time

Re: I have a problem.

Postby friarsol » 19 Aug 2012, 23:36

Try: sudo apt-get install sun-java6-jre
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: I have a problem.

Postby Questioner » 20 Aug 2012, 13:19

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!
Questioner
 
Posts: 10
Joined: 14 Apr 2012, 17:31
Has thanked: 2 times
Been thanked: 0 time


Return to Forge

Who is online

Users browsing this forum: No registered users and 39 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 39 guests

Login Form