Page 1 of 1

[SOLVED] Openjdk crashes trying to run Minecraft

PostPosted: Feb 26th, '14, 14:06
by mla
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?

Re: Openjdk crashes trying to run Minecraft under Mageia 4

PostPosted: Feb 27th, '14, 03:38
by doktor5000
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/

Re: Openjdk crashes trying to run Minecraft under Mageia 4

PostPosted: Feb 27th, '14, 12:29
by mla
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.

Re: Openjdk crashes trying to run Minecraft under Mageia 4

PostPosted: Feb 27th, '14, 12:41
by mla
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!