Fedora 8 and NetBeans Problems

Last month i got a hold of Fedora 8 and upgraded my 7 installation. I’d heard about the IcedTea version of the JDK already installed in Fedora, so I decided to go ahead and install without updating to JDK 6. Much to my surprise, NetBeans won’t install with the following error

‘Assertion ‘c->xlib.lock’ failed.’ error.

and a lot more.

Changing to JDK 6 didn’t help either. NetBeans is the IDE, and not being able to use it outta the box just drove me nuts. In a hurry to use my system, i just re-installed Fedora 7 and went back to life as usual.

However, to all the folks who had also tried to install NetBeans 6 on Fedora, here is the solution to a problem that turns out to be from the JDK itself.

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

Got it from here

Also for those of us who want NetBeans to work alongside the XGL destop effects, here’s the workaround

put into the script file of NetBeans this line: export AWT_TOOLKIT=MToolkit

Here’s the source

Now let the Fedora 8 games begin

Advertisements

4 thoughts on “Fedora 8 and NetBeans Problems

  1. Pingback: bliggi.com

  2. Downloading and Installing Sun’s Java SE 6 JDK

    1 jdk-6u2-linux-i586-rpm.bin

    chmod a+x jdk-6u2-linux-i586-rpm.bin

    ./jdk-6u2-linux-i586-rpm.bin

    2 After the installation has been done you can delete installer and the temporary files it created on
    your desktop by issuing the following commands:

    rm jdk-6u2-linux*
    rm sun-java*.rpm

    3 Making Sun JDK The Default Java Engine

    To make freshly installed Sun JDK your default Java engine in the terminal windows issue the following commands:

    First, become root:

    su

    Then add freshly installed Sun JDK to the list od Java alternatives:

    /usr/sbin/alternatives –install /usr/bin/java java /usr/java/latest/bin/java 2

    Finally, select freshly installed JDK as your default Java engine (in my case choice 2):

    /usr/sbin/alternatives –config java

    To check Java engine:

    java -version

    To check Java compiler:

    javac -version

    4 Plugin Setup for Mozilla Firefox

    To install Sun Java plugin into Fedora’s Firefox setup issue the following commands.

    First, become root:

    su

    Move to Mozilla Firefox plugin folder:

    cd /usr/lib/mozilla/plugins

    Create a symbolic link to Sun Java plugin:

    ln -s /usr/java/latest/jre/plugin/i386/ns7/libjavaplugin_oji.so

    6 Downloading and installing Netbeans 5.5.1

    Now, go to NetBeans home page to download NetBeans installer.

    Make the NetBeans installer file executable:

    chmod a+x netbeans-5_5_1-linux.bin

    Finally, execute NetBeans IDE installer:

    ./netbeans-5_5_1-linux.bin

    and finally follow the installation wizard

  3. Another way to make your newly installed jdk be the default at all terminals is to run the following as root

    ln -s -f /usr/java/jdk1.6.0_04/bin/java /usr/bin/java

    Then try java -version

    This is because the symbolic link /usr/bin/java is in the path that the terminal searches to execute any command. So just changing it to point to your newly installed one solves the problem easily.

    Thanks

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