I finally decided to install Minecraft on my new shiny Toshiba Portege z830.
Ubuntu ships with an open-source version of Java, which did run Minecraft, but the graphics were terrible, even on the lowest settings. There were artefacts everywhere!
So as recommended, I switched to the official JRE, but now the login screen works, but that's about it. After logging in, I just got a black screen and the following exception in the console:
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError at net.minecraft.client.Minecraft.a(SourceFile:180) at net.minecraft.client.Minecraft.run(SourceFile:648) at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:234) at org.lwjgl.opengl.XRandR$Screen.<init>(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.<clinit>(Display.java:135)... 3 more
After discussing the problem in IRC, the solution was quite simple. It turns out "lwjgl" is a "Light Weight Java Game Library" and the version I had wasn't behaving.
On the advice of the helpful IRC'ers, I downloaded the latest "lwjgl" from here (which at time of writing is 2.8.3) to get it all to work nicely.
To install it, I downloaded the zip file, extracted it to a temporary directory, then copied across these files:
cp lwjgl-2.8.3/jar/lwjgl.jar ~/.minecraft/binDone! Now it works nicely.
cp lwjgl-2.8.3/native/linux/* ~/.minecraft/bin/natives
20 comments:
Hello, I've just encountered the same problem and tried your fix, but it didn't seem to work at first.
I then noticed then you said to copy from lwjgl-2.8.3/native/linux/* into ~/.minecraft/bin/native. But it's actually ~/.minecraft/bin/natives , note 'natives'.
This is using the latest MC version as of posting.
Thank you Dunks!
My mistake, I've updated the post.
Cheers
Thanks a lot
Thanks a lot for this post. Fixed my problem.
Helped me out too, thanks so much.
Great! Appreciate the feedback, thanks!
Sweet, thanks for the fix!
Wow, after hours of searching, this was indeed the solution of my problem. Thanx!
This problem was haunting me for a while now... Im running my system from USB as i dont want to leave traces on the system and so i didnt want to run regular Ubuntu as Gnome is too heavy. Minecraft worked perfectly fine under Ubuntu, but not under Xubuntu..
This solved it for me! :D
Thank you sir.
Been fighting with Minecraft for 2 days on xubuntu trying to run it, finally came across this post and WOW got it running right away. The 5000 internets shall be delivered to your account posthaste.
Glad this is useful, thanks for the great feedback everyone! Really appreciate it!
Thanks
Bless your heart! Made my night!
This worked perfectly! Thanks!
Thank you !!
Thanks!
This problem has been winding me up for just over 3 days now, but thanks to you, problem solved :)
you sir, are a legend :)
Thanks for the great feedback! :)
Glad to hear it's helping people!
Thanks alot! I don't understand why this is needed in the first place, but thanks alot for giving us the solution!
This should be reported to the devs, shouldn't it?
Thank you very much! :)
Post a Comment