$ ./java_program java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. See http://en.opensuse.org/Xlib.lock
This hack works: cd /usr/java/jre1.6.0_01/lib/i386/xawt cp libmawt.so libmawt.so.bak sed -i ’s/XINERAMA/FAKEEXTN/g’ libmawt.so
NOTABUG afaik. This seems to be a bug with java http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 From Josh Triplett The following workarounds address this problem: For sun-java5-bin: sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.so For sun-java6-bin: sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so The same fix (applied to the appropriate file) might work for other proprietary JDKs.
It's a bug, but it's already fixed in icedtea. We can't fix any other JDKs though. *** This bug has been marked as a duplicate of 301691 ***
Also see bug 301691