The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

OpenJDK7: Cannot find display (minecraft)

asked 2013-03-22 17:43:55 +0000

wlhlm gravatar image

updated 2013-03-22 17:45:51 +0000

There is a problem with Java finding the correct display on my dual monitor setup in i3. When I`m trying to launch Minecraft, I get a black window when the game starts and it puts out:

Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
    at net.minecraft.client.Minecraft.a(SourceFile:208)
    at avv.a(SourceFile:56)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at org.lwjgl.opengl.XRandR$Screen.<init>(
    at org.lwjgl.opengl.XRandR$Screen.<init>(
    at org.lwjgl.opengl.XRandR.populate(
    at org.lwjgl.opengl.XRandR.access$100(
    at org.lwjgl.opengl.XRandR$
    at Method)
    at org.lwjgl.opengl.XRandR.getConfiguration(
    at org.lwjgl.opengl.LinuxDisplay.init(
    at org.lwjgl.opengl.Display.<clinit>(
    ... 4 more

I`m running i3 version 4.5.1.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2013-03-22 18:07:26 +0000

wlhlm gravatar image

updated 2013-03-22 18:09:56 +0000

It seems that it rather is a problem of lwjgl which is being distributed with Minecraft in an older version that has some bugs with multidisplay-setups. Replacing it with a newer version helped me.

edit flag offensive delete link more


See "" for instructions.

wlhlm gravatar imagewlhlm ( 2013-03-22 18:07:51 +0000 )edit

answered 2013-03-22 17:52:00 +0000

Michael gravatar image

i3 doesn’t modify any RandR information, so this seems unrelated to i3 on the first glance. Unfortunately Minecraft isn’t open source, so we can’t look at what it does…

edit flag offensive delete link more

Question Tools


Asked: 2013-03-22 17:43:55 +0000

Seen: 974 times

Last updated: Mar 22 '13

Related questions