[SOLVED] Openjdk crashes trying to run Minecraft

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Openjdk crashes trying to run Minecraft

Postby mla » Feb 26th, '14, 14:06

It starts OK, giving the login screen but on attempting login one gets

Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.a(SourceFile:208)
at avv.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(SourceFile:507)
at java.lang.Thread.run(Thread.java:744)
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)


This used to be fixable by switching to Sun's Java via alternatives, but this option appears to be no longer available. ANy suggestions anybody?
Last edited by mla on Feb 27th, '14, 12:42, edited 1 time in total.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Openjdk crashes trying to run Minecraft under Mageia 4

Postby doktor5000 » Feb 27th, '14, 03:38

Do you only have one monitor or more than one? What graphics card and driver do you use?

Could also be a known issue with one of the libraries it uses:
https://ask.fedoraproject.org/en/questi ... ter-login/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Openjdk crashes trying to run Minecraft under Mageia 4

Postby mla » Feb 27th, '14, 12:29

Just one monitor. The graphics card is GeForce GT 430.

Thanks for the fedoraproject link. I'll try the solution suggested there when I have a moment.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Openjdk crashes trying to run Minecraft under Mageia 4

Postby mla » Feb 27th, '14, 12:41

In fact, have tried it already (no building of anything requited, so damn simple! :-)) and can confirm that the solution works. I.e. not a Mageia problem at all.

For the benefit of any other Minecraft players here, until Minecraft developers fix it for you, follow these steps -- root privilege not required:

wget http://downloads.sourceforge.net/projec ... -2.9.0.zip
unzip lwjgl-2.9.0.zip
cp jar/* ~/.minecraft/bin/
cp native/linux/* ~/.minecraft/bin/natives/


Anyway, many thanks for pointing me in the right direction!
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest