Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

These errors happen when I launch minecraft, First error happens when I launch the login menu ( It still boots up ). Second when I actually launch the game.

Landswimmer@linux-99vz:~/Documents/Minecraft/Vanilla> java -jar minecraft.jar 
asdf /home/Landswimmer/.minecraft/lastlogin (No such file or directory)
        at Method)
        at net.minecraft.LoginForm.readUsername(
        at net.minecraft.LoginForm.<init>(
        at net.minecraft.LauncherFrame.<init>(
        at net.minecraft.LauncherFrame.main(
        at net.minecraft.MinecraftLauncher.main(

Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: /home/Landswimmer/.minecraft/bin/natives/ /home/Landswimmer/.minecraft/bin/natives/ wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary1(
        at java.lang.ClassLoader.loadLibrary0(
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.load0(
        at java.lang.System.load(
        at org.lwjgl.Sys$
        at Method)
        at org.lwjgl.Sys.doLoadLibrary(
        at org.lwjgl.Sys.loadLibrary(
        at org.lwjgl.Sys.<clinit>(
        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(                                  
        at net.minecraft.Launcher$    
share|improve this question
You don't launch the Minecraft file directly, you launch the Minecraft launcher instead. Also mention the version of Minecraft in your answer as there is a new launcher as well. – Meer Borg May 6 '13 at 0:19
What I'm saying is when I launch the game from the launcher, it downloads the files and then black screens and that error happens. I opened it this way to see an error log. – Landswimmer May 6 '13 at 0:45
Checkout this guide… – Meer Borg May 6 '13 at 0:56
up vote 1 down vote accepted

Java Oracle isn't the best solution for Minecraft. I'd suggest using OpenJDK instead. You can see how you install OpenJDK for Ubuntu, here

Luis Alvarado's explanation (as Meer Bong suggested in the last comment) is very complicated, and you don't need to install Minecraft via Wine, to make it work.

You simply download the Launcher from Minecraft's website (the file called minecraft.jar) and right click it, and open it via OpenJDK. Then, from the launcher menu, click the options button, and press the button "Force Update". Then it should work perfectly. It worked perfect for me, and I've had no trouble with Minecraft whatsoever.

share|improve this answer
Thanks for all the help, but also Why is OpenJDK better for minecraft than oracle? – Landswimmer May 6 '13 at 21:07
I don't really know, I have recently learned that there isn't that big of a difference, but this is based on my experience – Frederik Popp May 7 '13 at 7:53

I needed to use Oracle's Java for certain things to work with the Sage math program. If you install Java using the instructions here or here (if you need JDK) then you should be able to type

java -jar Minecraft.jar

You don't have a convenient right click option like with openjdk but it works fine for me like that. I know this is an old thread but this is the first link Google returns as a result and it didn't have the info I needed as I was aware that it works with openjdk but needed/wanted it to work with Oracle Java. Which it does.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.