I have a problem.
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
7 posts
• Page 1 of 1
I have a problem.
by 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?
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.
by slapshot5 » 19 Aug 2012, 13:38
Can you post the output of:
which java
and
java -version
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.
by 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.
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.
by friarsol » 19 Aug 2012, 20:21
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.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.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: I have a problem.
by 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.
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
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: I have a problem.
by 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!
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
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: Su11y and 32 guests