mojira.dev
MC-13551

Minecraft won't launch in Ubuntu - Possible nativeLibrary incompatibility

When attempting to launch minecarft in ubuntu linux, I get the following error in the terminal. This error occurs after I log in and before the mojang logo appears.

viper@Viper-PC:~/Downloads/Games/Minecraft$ jre1.7.0_17/bin/java -jar minecraft.jar
asdf
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/viper/.minecraft/bin/natives/liblwjgl.so: /home/viper/.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.G(SourceFile:1985)
at awe.<init>(SourceFile:20)
at net.minecraft.client.Minecraft.<init>(SourceFile:76)
at avv.<init>(SourceFile:38)
at net.minecraft.client.MinecraftApplet.init(SourceFile:38)
at net.minecraft.Launcher.replace(Launcher.java:136)
at net.minecraft.Launcher$1.run(Launcher.java:79)

Related issues

Attachments

Comments

migrated
[media]
kumasasa

Duplicate of MC-3090.

The execption

Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: /home/viper/.minecraft/bin/natives/liblwjgl.so: /home/viper/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

is neither a Minecraft nor a LWJGL issue, it's just a configuration issue because the 32bit version of the native libraries are loaded instead of the 64bit versions and can be fixed by adding

export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"

to rc.local or .bashrc or whatever.

Reece Broughton

Thanks for the information! I was able to get minecraft to run by updating the LWJGL files to a nightly build (2.9.0).

Reece Broughton

(Unassigned)

Unconfirmed

NativeLibrary, linux, ubuntu

Minecraft 1.5, Minecraft 1.5.1

Retrieved