Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

So, I have downloaded and installed java multiple different ways, but I cannot get minecraft to work. I really don't know what's going on, so I don't know how to explain it, but check out this video to see it in action: If you would like to see the logs, they can be downloaded here:

share|improve this question
Apparently, from your logs, minecraft has been trying to write on memory that has not been allocated to it. Have you tried to command like execute it like: java /home/<username>/Home/Desktop/minecraft.jar – NlightNFotis Aug 15 '12 at 22:01
Nlight, when I do that, I get this: Error: Could not find or load main class .home.steven.Home.Desktop.minecraft.jar – Steven Fontaine Aug 15 '12 at 22:05
@NlightNfotis: the command is java -jar /home/<username>/Desktop/minecraft.jar, or java -jar ~/Desktop/minecraft.jar – Sergey Aug 15 '12 at 22:19

I think you have installed a Windows version of Java in Wine and it takes precedence over the "normal" Java from Ubuntu repositories, possibly only when you open Minecraft via a desktop shortcut.

You need to remove the Windows version of Java (if you have no other stuff installed in Wine I'd just remove/rename .wine directory to be sure it's gone) and then try to run Minecraft from terminal with

cd ~/Desktop
java -jar minecraft.jar

Note the -jar parameter. Make sure you can run Minecrafr this way, and then you can create a desktop shortcut as described in the article linked to by MickStep.

You also don't need Minecraft.exe, and it won't work, don't even try.

Also, Minecraft works well for me with Ubuntu's stock-standard OpenJDK Java, so maybe you can start with it, and if it does not work look at installing Java from Oracle (but, again, not a Windows version)

share|improve this answer
Alright.. I'm honestly a major ubuntu noob (as you can most likely tell) so could you go through a detailed explination on how to get rid of the windows java? – Steven Fontaine Aug 15 '12 at 22:22
@StevenFontaine: there should be some uninstaller somewhere in Wine (similar to what you usually have in Windows: Start - Oracle - Java blah-blah - Uninstall Java). Alternatively, running mv ~/.wine ~/.wine.old will effectively clear all your Wine install. However, I now think that running java in terminal still invokes the system Java, so you can just ignore the Windows version and try typing the commands from my answer in terminal. – Sergey Aug 15 '12 at 22:32

Looks like you have installed the icedtea version of Java which is free software, however it appears you need to have the proprietary version of java to run minecraft, check out this blog post:

share|improve this answer
Spot on! Did not notice the Icedtea java. How could I have missed it? +1 – NlightNFotis Aug 15 '12 at 22:09
I followed the instructions completely, but, when I try to open the file I created, nothing happens. No logs appear, no errors pop up, nothing.... :( – Steven Fontaine Aug 15 '12 at 22:14
Also, what is the proprietary version of java? Chances are I've installed it. I swear, I've installed java 20 different ways trying to fix this! D: – Steven Fontaine Aug 15 '12 at 22:15
@StevenFontaine: Ironically, installing 20 different versions of Java is not going to improve your chances to run Minecraft :) I'd suggest to try to remove ALL of them (i.e. make sure typing java in terminal results in "command not found") and then install just one Java from Ubuntu repos. Otherwise you have a soup of different Java versions which step on each other feet. – Sergey Aug 15 '12 at 22:22
OpenJDK 6 works fine here with Minecraft... – Lekensteyn Aug 15 '12 at 22:28

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.