ubuntu problem with Java GUI applications
4 July 2008
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
.
Entry Filed under: Linux. Tags: Eclipse, java swing ubuntu, Linux, Locking assertion failure, ubuntu, ubuntu grey frame with java, ubuntu hardy.
4 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1. Bloggins | 29 July 2008 at 5:18 pm
Bingo, fixed my problem with “Sweet Home 3D” on fedora 8
Thanks
2. Jounters | 17 February 2009 at 11:54 am
Saved my day on protege (simple solution AWT_TOOLKIT).
Thanks!
3. eatium | 22 April 2009 at 2:35 am
yes,great!Thank u!sudo sed -i s/XINERAMA/FAKEXTNG/g’ /usr/local/jdk1.6.0_01/jre/lib/i386/xawt/libmawt.so
4. eatium | 22 April 2009 at 2:35 am
yes,great!Thank u!sudo sed -i s/XINERAMA/FAKEXTNG/g’ /usr/local/jdk1.6.0_01/jre/lib/i386/xawt/libmawt.so