You can find the patch
here To install it you need the source code of libxcb (which I guess you haven't if you have installed X using packages) and run from the libxcb source dir:
Code:
patch -p0 < libxcb-java.patch
You can try what is suggested in
this bug report:
Code:
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
Of course you need to change the path to libmawt.so accordingly and make a backup of that file first. I've tried it and it worked.