Resolved Can't open run_linux.sh

I was trying to run the game on my linux computer when I encountered a problem. When I ran the run_linux.sh file in terminal it gave me back this.
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/terasology/engine/Terasology : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Is there anything I can do to fix this?
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Hi there! :)

That error ("Unsupported major.minor version 52.0") means your environment is attempting to use a too old version of Java to run the game. You need to have a Java 8 JRE recognized on your PATH or explicitly launch using something like

Code:
<path to jre 8 bin dir>/java -Xms128m -Xmx1024m -jar libs/Terasology.jar
Which is the main thing the shell script does.
 
I just did some research and found out that it is not compatible with Ubuntu 14.04. Will it run if I download an older version of the game? I don't mind having an older version of the game, I just love the look of it! :)
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
I just did some research and found out that it is not compatible with Ubuntu 14.04. Will it run if I download an older version of the game? I don't mind having an older version of the game, I just love the look of it! :)
Yep if you go old enough, but it would have to be pretty old :)

Not entirely sure how old, but the legacy version is still available in Jenkins and has some neat old stuff. Tons of improvements since though, not to mention dozens of new modules.

You can get Java 8 working on Ubuntu, it just came up earlier today on IRC in fact. Just takes a little tinkering :D
 
Top