I have Ubuntu 11.10 64-bit and I installed JDK 1.7.0 update 2 x64 via webupd8 page. But currently I have problem with minecraft game. After downloading launcher from Minecraft.net and lauch the game by java -jar /home/zrebec/Downloads/minecraft.jar
launcehr is launched normaly, after login the game download the updates but then I got just the black screen with this in terminal:
Setting user: zrebec, -356009615199623309
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/zrebec/.minecraft/bin/natives/liblwjgl.so: /home/zrebec/.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:180)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:722)
Please anyone can help me with this? I think that problem will be in architecture becase:
liblwjgl.so: /home/zrebec/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
Any idea please?
I know, maybe this one is off topic because maybe its not Ubuntu problem maybe but in 64-bit works all perfectly and I think that accepted answer can help to many users and can make better playing games under linux. Really. Thank you very much for any idea.
I have the same problem but I installed via webupd8 - Install Oracle Java (JDK) 7 in Ubuntu via PPA Repository, searching the internet I found this script (I'm adapted the script to my system) but basically this is:
The script for my system:
I hope this will be useful
Found this on a Fedora forum and it worked nicely for me running 12.04 Ubuntu-64bit with OpenJDK7u3
Link
Instead of launching a script everytime you want to run minecraft, you can also add the libraries to the ldconfig:
now just run minecraft by opening it with java in the file manager
(example of line 1: sudo su -c "echo /usr/lib/jvm/oracle-java/lib/amd64 > /etc/ld.so.conf.d/java.conf")
If you use this type of Java, http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux, then this is the correct code you need.
Thank-you JoZ3, I just slightly modified your code.
@JoZ3 Thank you very much. You solved my problem. Trick was to redirect that path. Just a small tut for beginners. Before reading this, I assumed that you all installed JDK 7 like JoZ3 wrote in his post. (Oracle JDK is needed.)
minecraft.jar
. Place it in some folder on desktop.Create a text document and paste JoZ3's commands in it. This is the required command and we are creating a shell script.
Save it as, for example,
fix.sh
.Make sure you run
chmod fix.sh
with this command.cd
to the directory where the file is located and type in the terminal the following commands:Run
fix.sh
from terminal by dragging it to the terminal and pressing Enter, or by manual typing its location in terminal and pressing Enter.Game should work now! It solved my problem.
So... I found the solution :)
By this page I crated this script and its works perfectly :) I remove OpenJDK and after executing this script the game works :)
I downloaded the windows exe, let it load, took the minecraft jar out of windows, I found that that works for me(since the one for linux on their site aint)
This worked to me:
I adapted the directory because I use the JAVA by ORACLE. This solved the mystery of the black screen. (:
Simple fix, download the .jar file off the minecraft website, move it to your desktop, right click, properties, check make file executable and your done.