Archive for July, 2008
ubuntu problem with Java GUI applications
You may encounter a serious problem in ubuntu while trying to launch 3D games or launch Java GUI applications like swing or awt.
The error logs looks like following:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb53cb767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0×31) [0xb53cb8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb54151bd]
and much more…….
The solve of the problem is very easy, just type this command in ubuntu:
$ sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-6-sun-1.6.0.05/jre/lib/i386/xawt/libmawt.so
You may installed another version of Java like java-1.5.0-sun-1.5.0.15, so you have to substitute it in the comand above.
Also you may run your swing programs and encounter just grey frame or box, all you have to do is to attempt the following small instruction:-
in /etc/environment
Open the termminal:
$ sudo -s
$ gedit /etc/environment
add:
AWT_TOOLKIT=”MToolkit”
Save, exit and login again.
Good Day With Eclipse
.
4 comments 4 July 2008