Minecraft Beta 1.4 and Ubuntu 10.04 LTS blank screen

The issue

You start the Minecraft application and you’re able to see the login. You login, but before the game can start the screen turns blank.

If you launched the game from the command line (e.g. java -jar minecraft.jar), you might get the following error log on your terminal the moment your screen goes blank.

Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
	at net.minecraft.client.Minecraft.a(SourceFile:219)
	at net.minecraft.client.Minecraft.run(SourceFile:638)
	at java.lang.Thread.run(Thread.java:636)
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

Fix

  1. Go to the LWJGL website and download the latest stable release (at the time of writing this is 2.7.1).
  2. From the “jar” directory found in the LWJGL archive, extract the jinput.jar, lwjgl.jar and lwjgl_util.jar files into ~/.minecraft/bin/, overwriting the old files
  3. From the”native/linux” directory found in the LWJGL archive, extract the *.so files into the ~/.minecraft/bin/natives directory, overwriting the old files
  4. You’re done! Start the game, this time the game should begin without any issues

Additional information (for Google)

The issue may be a result of the multi-monitor setup I have on my laptop/desktop.