This blog is subject the DISCLAIMER below.

Friday, November 23, 2007

The solution of the fedora 8 shock (swing doesn't work)

In this post we gonna show why does swing components? most of us tried netbeans ,but it awfully doesn't work with it. The reason is that , netbeans and swings are using the libx11 and there some thread safety operation the new version of this lib is doing that's why if you downgraded to the last version of libx11 you will find swings works will but of course it's not the ideal solution but of course there is another solution. The solution is to change the path of the libx11 in the libmawt.so which have shared native functions that calls libx11. we change the place of the used lib from the XINERAMA to the FAKEEXTN
using the sed command like this :

sed -i 's/XINERAMA/FAKEEXTN/g' libmawt.so

but where is libmawt.so this is different from jvm to jvm especially after the icedtea(icedtea is an implementation of the jvm by redhat ) so if you are using the jdk's jvm you will find the file in

/usr/jdk1.6.0_03/jre/lib/i386/xawt/libmawt.so
and after that you can run your net beans setup of any program that runs with java

2 comments:

Shereef Sakr said...

Very good post. Keep it up :)

Anonymous said...

bgd ana mesh 3arfa 2a2olak aih bas rabna yof2ak we isa hatkon an international developer we isa you will participate in a big open source project we isa ha3mlo m3ak