7

I have installed JDK and JRE from this tutorial and have tried many methods of starting it up, yet my results are always the same. If any one could please help me I would be very grateful.

Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/dennis/.minecraft/bin/natives/liblwjgl.so: /home/dennis/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at org.lwjgl.Sys$1.run(Sys.java:69)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
    at org.lwjgl.Sys.loadLibrary(Sys.java:81)
    at org.lwjgl.Sys.<clinit>(Sys.java:98)
    at net.minecraft.client.Minecraft.F(SourceFile:1853)
    at aoe.<init>(SourceFile:20)
    at net.minecraft.client.Minecraft.<init>(SourceFile:77)
    at anv.<init>(SourceFile:36)
    at net.minecraft.client.MinecraftApplet.init(SourceFile:36)
    at net.minecraft.Launcher.replace(Launcher.java:136)
    at net.minecraft.Launcher$1.run(Launcher.java:79)
3

7 Answers 7

6

I play minecraft and I fixed the issue by: Using oracles version of java by using the wepupd8 teams java ppa. Follow this tutorial: http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html

Then try this in terminal

export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/i386" 

And then:

java -jar technic-launcher-latest.jar 

If that doesnt work for you, you will have to update your jwgl files by following this tutorial I wrote (included references at bottom if you would rather use them):

1
  • 1
    You should use export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64" for 64 bit Ubuntu (note amd64 at end)
    – kiri
    Sep 5, 2013 at 7:26
4

Install OpenJDK Java 7

sudo apt-get install openjdk-7-jre

Then download the latest copy of LWJGL from here http://lwjgl.org/download.php and extract it

Copy the following to ~/.minecraft/bin

  • jinput.jar
  • lwjgl.jar
  • lwjgl_util.jar

And the following to ~/.minecraft/bin/natives

  • libjinput-linux.so
  • libjinput-linux64.so
  • liblwjgl.so
  • liblwjgl64.so
  • libopenal.so
  • libopenal64.so

Then restart Minecraft

Make sure you overwrite the files that Minecraft downloads, they are out of date.

1
  • I did not need to install OpenJDK, updating the LWJGL libs was good enough to resolve the issue on my computer. In fact, the Minecraft official website's download page recommends using the Sun/Oracle JDK. Either way, thanks for the helpful answer!
    – Jesse Webb
    Jan 8, 2013 at 8:23
1

Instead of doing as the other post suggests, my cousin was kind enough to inform me of this option(source) found by searching specifically for my distro, but which will work with others having this same issue as well. Part of the problem was already solved by running the following from terminal.

If using java 7:

export LD_LIBRARY_PATH="/usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/lib/amd64/"

If not using java 7 you should be able to find the variable on google fairly easy, for java 6 for example you might try:

export LD_LIBRARY_PATH="/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/"

Now that should work but it didn't, so after reading the post above I decided to do as suggested and add to ~/.bashrc Adding anywhere in the file will be fine just copy and paste the above using gedit or nano:

gnomesu gedit ~/.bashrc

Now save or Ctrl + s and close gedit and then run the following to update bash:

source ~/.bashrc

Try running minecraft again and you should be set.

0

Install the Oracle Java client, or if your using that and having problems, try the OpenJRE.

Then, most important, you need to do this:

http://www.minecraftwiki.net/wiki/Tutorials/Update_LWJGL

That got me up and running.

1
  • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Aug 4, 2012 at 19:34
0

Make sure you install version 6 of OpenJDK if you use it. Minecraft has issues running with OpenJDK 7. It would be best if you install Sun Java instead.

1
  • Do you have any more detailed information, or a link to a page with information, about what kind of problems occur when trying to run Minecraft with OpenJDK 7? Aug 4, 2012 at 19:35
0

Try install proprietary drivers.

That helped me.

Search for additional drivers in the Unity Dash.

0

I got the same wrong ELF class: ELFCLASS32 error, and after upgrading LWJGL to 2.8.4 Minecraft 1.3.2 worked for me with Oracle Java 1.7.0_07 and OpenJDK 6 on Ubuntu 12.04 x86_64.

You can change the java executable with sudo update-alternatives --config java.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .