[MC-4233] 32bit natives dont load on 64 bit java-vm version 7 Created: 08/Dec/12  Updated: 16/Apr/13  Resolved: 12/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w49a
Fix Version/s: None

Type: Bug
Reporter: C.J. Wijtmans Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

icedtea-bin-7.2.3.3-r1 and sun-jdk-1.7 on gentoo linux ~amd64


Issue Links:
Duplicate
duplicates MC-3090 Unable to play game unless LWJGL is m... Resolved
CHK:
Confirmation Status: Unconfirmed

 Description   

$ java -jar Downloads/minecraft.jar
Created new window in existing browser session.
27 achievements
174 recipes
Setting user: kaasinees, 6492966854971641986
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/desktop/.minecraft/bin/natives/liblwjgl.so: /home/desktop/.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.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
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 org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at net.minecraft.client.Minecraft.a(SourceFile:187)
at net.minecraft.client.Minecraft.run(SourceFile:644)
at java.lang.Thread.run(Thread.java:722)

https://bugs.gentoo.org/show_bug.cgi?id=391243

solution: add 64 bit natives and fix natives paths, townsgame does it properly.



 Comments   
Comment by C.J. Wijtmans [ 08/Jan/13 ]

Not fixed.

I said before this is a problem with minecraft only, other java games detect libraries properly.

PLEASE FIX. update your LWJGL or whatever libs that is causing this problem.

Comment by Kumasasa [ 12/Dec/12 ]

In ticket MC-4496 is the solution:

export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"
Generated at Sun Jan 12 12:03:53 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.