Log in

View Full Version : Need help running Minecraft on Kubuntu


Silicate Wielder
April 20th, 2012, 04:33 PM
Ok, So I managed to get some progress with the whole java runtime and now have SunJava instead of IcedTea OpenJDK. But when trying to start the MinecraftSP.jar using terminal It errors out and says
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: net.minecraft.LauncherFrame. Program will exit.


Could someone help me with this? I'm trying to make a launcher for the game aswell since the Ubuntu install batch just crashes as soon as it opens in Terminal.

the command I used was:

java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame

TheMatrix
April 20th, 2012, 06:00 PM
You did extract the JAR and then execute the .class file inside, right? Yes, it's not the "proper" way to do it, but it gives you an idea of whether it works at all. Othwerwise, I'm sure Minecraft has customer support or a large community to help you.

Silicate Wielder
April 20th, 2012, 07:16 PM
I never thought of that, but if the program named "Java 6" would just show up in the applications list I wouldn't need to start Minecraft through Terminal.

Errr.... It wouldn't let me try to with Java VisualVM or Java6 Webstart. I litterally can't run any program that has to be executed with java unless its on the internet. And now that I think about it, I may be able to play classic on the Minecraft website, but that won't be enough to tackle my boredom I bet.

And I was right, It wasnt enough. Any ideas how I could get the game to start using terminal? Or should I just install Ubuntu 11.10 alongside Kubuntu?