Install the openjdk
Copy and paste this into the terminal window (Click Applications –> Accessories –>Terminal)
sudo apt-get install openjdk-6-jre openjdk-6-jre-headless
Then just download the game to your home folder and run at the terminal
java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
If you have trouble you could try this, it appears as if the filename has changed. This is due to Linux being case sensitive.
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
worked great for me!
LikeLike
Thanks alot friend! I have been trying to get it working for months, until i discovered this thread or post.
LikeLike
@Craig Thank you SO MUCH!! i didn’t activate my graphics card and now i did and minecraft works perfectly fine π Love you long time π
LikeLike
The above metnioned change to the uppercase M is what was causing the java error change the m to lower case and the problems will go away
LikeLike
DIDNT WORK
java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
DID WORK
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
The file from minecarft site has no capital letter
LikeLike
i have tryed all this and it stil gives me the Could not find the Main class: Xms512M. What do i need to do????
LikeLike
Can anyone help me?
petruhazz@ubuntu-flash:~$ java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
Exception in thread “main” java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
LikeLike
Even though i just needed this for the java install it was awesome
LikeLike
First off im running ubuntu 11.04 but i think some of this could be useful to anyone…
Ok so i was getting
——-
at java.awt.Window.(Window.java:476)
at java.awt.Frame.(Frame.java:419)
at net.minecraft.LauncherFrame.(LauncherFrame.java:27)
at net.minecraft.LauncherFrame.main(LauncherFrame.java:158)
——–
and it turns out it was my own fault.
I am new to ubuntu / linux and i had installed openjdk along with sun’s java.
So to fix this i went to “Ubuntu software Center” > “Installed Software” and i removed all the openjdk and anything related to open java (NOT everything with java in its name)
once i did that it works fine! (NOTE: if you dont have a “Ubuntu Software Cemter” then you might be able to use “sudo apt-get –purge remove ” )
(i followed this guide to get sun java installed as i was told it works better http://gabenell.blogspot.com/2010/04/installing-sun-java-6-on-ubuntu-104.html )
So now minecraft runs, but once i try to create a world it crash’s out with
———–
OpenAL initialized.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb7738424, pid=4676, tid=1848908656
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Server VM (19.1-b02 mixed mode linux-x86 )
# Problematic frame:
# [thread 1825614704 also had an error]
C [+0x424] __kernel_vsyscall+0x10
#
# An error report file with more information is saved as:
# /home/j/hs_err_pid4676.log
——————
So i did some reading and found out this is common with ATI cards on AMD’s running an x86 copy of linux… sooo i am now downloading the x64bit vr of ubuntu 11.04 and this should work from what im hearing….
Hope this helps someone!
J
LikeLike
Omg this sucks so bad. I will just reinstall windows, i can’t believe i have to write that absurd command in the terminal everytime i have to run the game.
AND THE GAME KEEPS CRASHING!
How can everyone like this Operative system so much?? it isn’t even Operative, since is does NOTHING.
LikeLike
I retract my previous concern, and to address others’ concerns, visit: {http://ubuntuwiki.net/index.php/Touchpad,_disabling_while_typing}
for information on the phenomenon.
LikeLike
augh, I feel like a noob. I apologise for the mis-positioned post.
LikeLike
I put Minecraft on my computer, and got it working, all the way up to the log in screen to play the game. But when i log in, it says that i don’t have a premium account. I dont want to pay for a premium, because i dont feel a need to play minecraft online, its just as fun in singleplayer. Can anyone help me?
LikeLike
in order to play the downloaded or online beta game, you need to pay for the game. its 26% off from the full game and worth 100 euros
LikeLike
it’s worth that much, but in beta, it is only 15.
LikeLike
anyone get this error?
Exception in thread “Thread-5” java.lang.NoClassDefFoundError: xg
at bu.(SourceFile:21)
at ba.(SourceFile:23)
at vm.(SourceFile:27)
at net.minecraft.client.Minecraft.(SourceFile:154)
at p.(SourceFile:34)
at net.minecraft.client.MinecraftApplet.init(SourceFile:34)
at net.minecraft.Launcher.replace(Launcher.java:143)
at net.minecraft.Launcher$1.run(Launcher.java:87)
Caused by: java.lang.ClassNotFoundException: xg
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
… 8 more
no i am using this code:
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
and yes it has worked for me in the past
LikeLike
sorry for doubleposting but try this
move minecraft.jar to the trash folder and redownload it and move it to the home folder and use this code:
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
that is the best way to deal with my problem above. any other problems then you have minecraft.jar in the wrong folder or you arent using the code given above in this coment.
LikeLike
Hey guys, still got this error
Exception in thread “main” java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
Got JRE installed, latest drivers applied, “case-sensitive” input checked.
Ubuntu 10.10 running on lenovo sl510 with ati AMD M92-S2 XT.
Appreciate your help!
LikeLike
move it to desktop and use these comands in the terminal
cd Desktop
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
it works for me
LikeLike
no it doesnt anymore
LikeLike
I’m running minecraft on a Toshiba Satellite C655, and my trackpad won’t track when there’s keyboard input. Is there any way to make this work? The performance increase from windows to Ubuntu is ridiculous, and I’d hate to have to leave it because of a stupid problem like this.
LikeLike
you must have it configured wrong
LikeLike
Actually, as an aside, and for anyone contemplating the switch; On windows, since I installed steam (damn you, I suspect you are the cause of my grief!), my FPS in short and with fast graphics is average <3, whereas my performance in ubuntu on normal and fancy is 15.
LikeLike
Drop the capital M in Minecraft.jar. It downloads as minecraft.jar not Minecraft.jar
LikeLike
# change to the directory minecraft downloaded to.
java -jar minecraft.jar
LikeLike
Hey, I have a different problem. I can run minecraft, as in opening it, logging in, updating, but no farther. What happens instead of the mojang screen that i used to get, I get a simple black screen that won’t go away. I already fixed this once, but now not even the old method works. Usually this black screen only appears for a few seconds, while my computer loads the menu data, but now it doesn’t go away.
LikeLike
I posted this comment after forgetting the old method of evading the black screen of death. (for the program anyway)
LikeLike
I’m getting the same issue, whats the fix?
LikeLike
currently, there is no fix that works. That is, reinstall minecraft on a unsecured network and play there, or offline. in theory, it should work, but i have no unsecured networks that i can use.
LikeLike
even after a while, it still doesn’t work. i use a secured network, and i get this problem after using that secured network. Offline, i am fine, but only after uninstalling minecraft.jar and re installing it on an unsecured network, almost as if the network messes it up.
LikeLike
you can now go to the bottom of the page to find the code as i will post it there every month.
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
LikeLike
Have a look at this:
Exception in thread “Minecraft main thread” java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.a(SourceFile:244)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR$Screen.(XRandR.java:234)
at org.lwjgl.opengl.XRandR$Screen.(XRandR.java:196)
at org.lwjgl.opengl.XRandR.populate(XRandR.java:87)
at org.lwjgl.opengl.XRandR.access$100(XRandR.java:52)
at org.lwjgl.opengl.XRandR$1.run(XRandR.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.XRandR.getConfiguration(XRandR.java:108)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:618)
at org.lwjgl.opengl.Display.(Display.java:135)
… 3 more
It came right after i logged in. I have force update, which i can’t deactivate. It updates, then this, with a black screen. ubuntu 11.04 on a secured network, i just downloaded Minecraft.jar.
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!
LikeLike
same thing happens when i use a minecraft installer program to run the jarfile.
LikeLike
Exception in thread “main” java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
AHHHHHHHH
LikeLike
I figured out this “Could not find the main class: net.minecraft.Launcher.Frame SHIT”
All you have to do is to CLEARLY check your command. I ended up using the full ABSOLUTE path to the minecraft.jar because I wasn’t able to run it otherwise.
Type this in terminal to check that it works. (in Bold!)
NB: Most lazy people (like me) just download it to the regular download folder like this.
java -Xmx1024M -Xms512M -cp /home/YOUR-USER-NAME/YOUR-DOWNLOAD-FOLDER/minecraft.jar net.minecraft.LauncherFrame
Replace the CAPS letters in the cmd above, and right-click the minecraft.jar and make it EXECUTABLE. ALSO check that your .jar file isn’t named MineCrAfTTTT.jar or something juicy…
And finally.. I DO agree with all of you having the firstimpression of Ubuntu (and Linux) being all shitty and such. Most of my life (10 years with linux) things never really work just out the box. Its always some tweaking and Googling to make things right, and you will be lucky if you dont experience anything else – cause most people I’ve helped are not. I’m running first and foremost Ubuntu as a server, cause as a server it is brilliant.
And to all of you cocky Linux people who usually just tells people “your are an idiot” and starts PC vs Mac vs Linux instead of coming with a solution strait away.. Go screw yourself. People want to use their time off to do things.. not tweak and terminal type themself to death like I used my previous years doing..
LikeLike
this is what I’m getting π¦
mark@mark-desktop:~$ java -Xmx1024M -Xms512M -cp /home/mark/Desktop/minecraft.jar net.minecraft.LauncherFrame
16 achievements
151 recipes
Setting user: Daisydays, -2448952174095394998
Xlib: extension “GLX” missing on display “:0.0”.
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:262)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Thread.java:636)
Xlib: extension “GLX” missing on display “:0.0”.
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:294)
at net.minecraft.client.Minecraft.run(SourceFile:716)
at java.lang.Thread.run(Thread.java:636)
LikeLike
If anyone is having trouble with running it, make sure that a) the file is in the top directory of your home folder. If it isn’t, and you can’t be bothered moving it, you can use java -jar ~/[wherever] minecraft.jar . (~/ automatically points to home folder.) π
LikeLike
You kids are noobs. Java is built for multiple platforms. If you can’t set up your linux distro to run the jar, or your Mac OS… it’s time to get a different operating system or throw your PC away.
Peace.
LikeLike
I totally agree. linux is by far the best OS on the planet. it has the power of windows, and tthe ease of use of the mac
LikeLike
I’ve been having huge performance issues in 1.8 and 1.9, when I got maybe 30FPS in 1.7. Does anyone know the cause of this? Also, whenever I run MC, I get ‘failed to open device /dev/input/event0’ and so on. Granting myself permissions using chmod only works until I restart. Is there a way to do it pernamently?
LikeLike
as for the slow down i think thats a issue with the game, as i had that issue for awhile when i play it on my computer, the game works well on 1.9 rev 5 so try that one.
LikeLike
(DERP, accidently put this in two posts.) As well as this, whenever I install the repository for Xorg edgers in Ubuntu 11.10, The game crashes, saying SISEGV. removing this source and downgrading the packages to the versions shipped with the distro seems to fix the problem, but I want to know why this occurs, and if I would get a performance increase from updating. I have a Intel series 4 mobile chipset (intergrated). Thx! π
LikeLike
It wont let me….. i tryed both codes, and i changed the m to M but nothing works it just say:
java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
Exception in thread “main” java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
anna@anna-desktop:~$ java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
Exception in thread “main” java.lang.NoClassDefFoundError: net/minecraft/LauncherFrame
Caused by: java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.
LikeLike
keep up the good work on the blog. I love it. Could use some more frequent updates, but i am quite sure that you got better or other things to do like we all do. π
LikeLike
This isn’t a ‘workaround’ or a ‘hack’. Minecraft runs in JRE on Windows too. Almost all of the comments on this page are a bit silly.
By the way, a hack would have been making Java run non-natively on Ubuntu. Minecraft runs in Java and Java runs in Ubuntu. There’s no magic happening here.
LikeLike
hey will this screw up my computer if done incorrectly?
LikeLike
Anyone know how to run Mineshafter-proxy.jar
I got this:
java -jar mineshafter-proxy.jar Current proxy version: 3.2
Gotten proxy version: 3.2
Editing launcher failed:
java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:321)
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:163)
at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:338)
at mineshafter.MineClient.editLauncher(MineClient.java:149)
at mineshafter.MineClient.startLauncher(MineClient.java:107)
at mineshafter.MineClient.main(MineClient.java:77)
Error starting launcher:
java.lang.ClassNotFoundException: net.minecraft.LauncherFrame
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at mineshafter.MineClient.startLauncher(MineClient.java:94)
at mineshafter.MineClient.startLauncher(MineClient.java:108)
at mineshafter.MineClient.main(MineClient.java:77)
Also minecraft works well but mineshafter-proxy.jar not! I would appreciate any help!
LikeLike
All you need to do is set java runtime as the default application and in properties check the executable box, click close and double click it(that is, after getting all the drivers)
UBUNTU AND C++ RULE
LikeLike
sudo update-alternatives –config java
LikeLike
I need help :[ I’ve pasted it into my home folder, changed it to allow executing program, and opened it with OpenJDK Java 6 Runtime. It loads to login screen and fully loads the game. But when the title screen should show up-it goes black. Please help.
LikeLike
Also, does Mineshafter work on Ubuntu?
LikeLike
I visited many web pages except the audio quality
for audio songs existing at this web site is genuinely
fabulous.
Here is my web blog … Kent
LikeLike
Nice blog here! Also your web site loads up very fast! What web host are you using?
Can I get your affiliate link to your host? I wish my
web site loaded up as quickly as yours lol
LikeLike
But this is a subjective, and probably insurmountable obstacle.
‘ Create strict requirements to qualify for lawful permanent resident status. Third, hold undocumented immigrants accountable before they can earn their citizenship; this means requiring undocumented workers to pay their taxes and a penalty, move to the back of the line, learn English, and pass background checks.
LikeLike
Hi there, its good post regarding media print, we all understand media is a fantastic source of information.
Here is my page City Chic Discount Codes; citychiccouponcodes.blogspot.co.uk,
LikeLike