Errors with Java (IcedTea7 2.3.8) running minecraft

I’ve been searching forums and search-engine results for hours trying to get minecraft (v1.5.2) to work in openSusee 12.3.

This is the error I get in the terminal when running java -jar /home/margun/Downloads/minecraft.jar

Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
    at java.lang.Class.getMethod0(Class.java:2694)
    at java.lang.Class.getMethod(Class.java:1622)
    at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 6 more

java -version yields

java version "1.7.0_17"
OpenJDK Runtime Environment (IcedTea7 2.3.8) (suse-8.8.1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

I do have an openSuse 12.2 computer (my son’s) running IcedTea7 and minecraft works on it. I wish I could remember what I did to get that working. I’ve tried updating the lwjgl’s in the /bin and /bin/natives to what’s on the working machine and to the latest version (v2.9) as well as version 2.8.4.
If anyone has any input I would very much appreciate it.

Googling for “org/lwjgl/LWJGLException” led me to org.lwjgl.LWJGLException: Pixel format not accelerated | World of Minecraft which makes me believe this is related to the graphics driver. (haven’t read that thread though… :wink: )

So, do you have the proprietary nvidia driver installed?

What is the output of

glxinfo | grep render

?
(you need to install the package “Mesa-demo-x” first)

Did you already try this ?
64 bit - Minecraft in jdk 1.7.0_u2 x64 - Ask Ubuntu

Output of glxinfo | grep render

direct rendering: Yes
OpenGL renderer string: GeForce GTX 460M/PCIe/SSE2
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image, 
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering, 
    GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_OES_depth_texture, GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, 

I must have the nVidia driver. It’s a mostly default install of 12.3. I just reformatted and installed the other day for a fresh start from Sabayon.

I have tried this 64 bit - Minecraft in jdk 1.7.0_u2 x64 - Ask Ubuntu to no avail but I might revisit that and try again.

Should I install and switch to opensource drivers?

I also noticed that on nVidia’s site the 64bit driver for my 460m card is at version 319.17 while my installed version is at 310.44

Yes, you have and it’s working alright, as your output shows.

I have tried this 64 bit - Minecraft in jdk 1.7.0_u2 x64 - Ask Ubuntu to no avail but I might revisit that and try again.

Should I install and switch to opensource drivers?

No, that wouldn’t help. “java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException” means java doesn’t find the lwjgl extension.

But after googling some more, it seems that minecraft has problems with OpenJDK as included in openSUSE.
You could try installing Sun Java from here instead: Java SE Downloads. This is also recommended on minecraft’s homepage btw:

Download minecraft.jar (89 KB). The jar is executable and might work as-is. If you run into memory issues, try launching it with java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame,** also please use Sun’s JVM.**

That said, I just tried to run the launcher and it seems to work fine here on my 12.3 system with OpenJDK:
http://susepaste.org/images/39331168.png
Or does it crash later on? I haven’t tried further, since I don’t have an account…

I don’t even get to that screen. I get the error when in the command line when trying to run the game via command line. Although I have read of others having problems (black screen, etc) after logging in.

That said, I just tried to run the launcher and it seems to work fine here on my 12.3 system with OpenJDK:

What version of OpenJDK are you using? I’m on IcedTea7. I’m thinking that in the past I got this working by switching to IcedTea6. I’ll try installing Sun’s version but I don’t think it will work since you have it working with OpenJDK (assuming you’re on IT-7).
Thanks again for helping me with this!

Haha, well I just printed off and signed my very own ID-10T form!
I looked at another recent thread on minecraft and openSuse and realized my problem.
The game runs and opens normally with the default install of OpenJDK (IcedTea7 2.3.8, java 1.7.0_17).

The above post notes that there is a difference in the two minecraft.jar files (one is downloaded from minecraft.net and the other is created in userland upon executing the former). I simply downloaded a fresh copy of minecraft.jar from the website and executed that (after marking it as executable). I’m not sure exactly what happened the first time around but I ended up trying to execute a broken version of the file in ~/.minecraft/bin. It seems that executing the original fixed it.

Thanks for your time and efforts to all who’ve posted here. I hope it helps others!

Haha, well I just printed off and signed my very own ID-10T form!
I looked at another recent thread on minecraft and openSuse and realized my problem.
The game runs and opens normally with the default install of OpenJDK (IcedTea7 2.3.8, java 1.7.0_17).

The above post notes that there is a difference in the two minecraft.jar files (one is downloaded from minecraft.net and the other is created in userland upon executing the former). I simply downloaded a fresh copy of minecraft.jar from the website and executed that (after marking it as executable). I’m not sure exactly what happened the first time around but I ended up trying to execute a broken version of the file in ~/.minecraft/bin. It seems that executing the original fixed it.

Thanks for your time and efforts to all who’ve posted here. I hope it helps others!

Haha, well I just printed off and signed my very own ID-10T form!
I looked at another recent thread on minecraft and openSuse and realized my problem.
The game runs and opens normally with the default install of OpenJDK (IcedTea7 2.3.8, java 1.7.0_17).

The above post notes that there is a difference in the two minecraft.jar files (one is downloaded from minecraft.net and the other is created in userland upon executing the former). I simply downloaded a fresh copy of minecraft.jar from the website and executed that (after marking it as executable). I’m not sure exactly what happened the first time around but I ended up trying to execute a broken version of the file in ~/.minecraft/bin. It seems that executing the original fixed it.

Thanks for your time and efforts to all who’ve posted here. I hope it helps others!