FCI-Helwan blog

Just another FCI-H weblog

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

Advertisements

November 23, 2007 - Posted by | JAVA, Linux, NetBeans

2 Comments »

  1. Very good post. Keep it up 🙂

    Comment by Shereef Sakr | November 23, 2007 | Reply

  2. 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

    Comment by ReemA | December 23, 2007 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: