Weird crash of a Java app in multi-screen X11 setup

Mikhail Teterin mi+mx at
Thu Apr 6 19:44:11 UTC 2006


I have 3 different X screens (:0.0, :0.1, and :0.2). When I try to run a
Java app on the :0.2, it crashes:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at java.awt.Toolkit$
        at Method)
        at java.awt.Toolkit.getDefaultToolkit(
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
        at sun.awt.X11GraphicsEnvironment.getDefaultScreenDevice(
        at sun.awt.motif.MToolkit.<clinit>(
        ... 17 more

It hangs (without creating visible GUI) instead of crashing, when I set
display to :0.1 and only starts up properly on :0.0.

Before I dig deeper into it, has anyone seen such a thing before? My
X-server is the Xorg-6.9.0. Thanks!


More information about the freebsd-x11 mailing list