Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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: http://youtu.be/ZN9pmmjzqw0 If you would like to see the logs, they can be downloaded here: http://www.mediafire.com/?xgbxoe37gq79b

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
add comment

2 Answers

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
add comment

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:

http://corbindavenport.blogspot.co.uk/2012/04/how-to-play-minecraft-on-ubuntu-1204.html

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
2  
OpenJDK 6 works fine here with Minecraft... –  Lekensteyn Aug 15 '12 at 22:28
show 1 more comment

Your Answer

 
discard

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.