This is a guide to get you know how to install Netbeans 6.0 on Fedora 7

Installing JDK

Before you install the Netbeans 6.0 IDE, the Java SE Development Kit (JDK) 5.0 Update 12 (version 1.5.0_12) or newer must be installed on your system. If you do not have an installation of JDK 5.0 Update 12 or newer, you cannot proceed with the installation. Here, I shall use the JDK version 5 update 12 (jdk-1_5_0_12) for Linux (i586) available for download here. Please make sure you download the self-extracting binary installer and NOT the RPM package.

Now, run the binary installer on your system and follow the on-screen instructions to install JDK

root@localhost Desktop# sh jdk-1_5_0_12-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement


Assume that the JDK is installed in the directory /opt/jdk1.5.0_12

Check the Java Environment

Test the Java(TM) Environment is set up correctly or not by running:-
java -version

An output similar to below should be displayed if all is correct.

java version "1.5.0_12" 
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)...........
Java HotSpot(TM) Client VM(Build 1.5.0_12-b04, mixed mode, sharing)

It might be possible that u have not seen this since fedora already have the red hat version of java. therefore when u write java -version the output may be showing as:

java version "1.5.0"
gij (GNU libgcj) version 4.1.2  20070502(Red Hat 4.1.2-12)

Copyright(c) 2006 Free Software Foundation,Inc
This is a free software, see the source  for copying conditions.

Set the Path

Netbeans cannot be installed on red hat version of java. since u have installed the jdk version 5 or upper u have to set the path in .bash_profile file to this newer version. When you open the .bash_profile file u will see the line where path has set as PATH=$PATH:$HOME/bin.

Change the path as: PATH=$HOME/bin:/opt/jdk1.5.0_12/bin:$PATH

Here we assume that our JDK is installed in the directory /opt. Save the changes that you have made in .bash_profile file by clicking save option.

Now rerun the command java -version to check which java environment has set. You will see the output as:

java version "1.5.0_12" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b03)...........

Now you can install the netbeans.

Installing Netbeans IDE 6.0

Netbeans 6.0 has many new features added as compared to previous version of NetBeans 5.5.1. It is avialable for download Netbeans 6.0 Download

Various installers are available for download having various packages in different installer. Download the Netbeans 6.0 installer for linux platform. There is a option available for choosing the platform for which you want to download the installer. Choose the linux otpion from it and then choose the installer depending upon what packages you want to have in your Netbeans IDE.

The file you will download is a binary file i.e netbeans-6.0-linux.bin. iam assuming that this file is available at your desktop.

I am demonstrating the installation using the FULL installer. For more installation options and customizations, you are referred to this link. After you have downloaded the installer start the installion process:

root@localhost Desktop# sh netbeans-6.0-linux.bin
Configuring installer...
Search JVM on the system...
Extracting installation data...
Running installer wizard...

File:Executing binary file

  • This starts the installer

File:Configuring the Installer

  • Agree to the Licence

File:Netbeans Licence Agreement

  • Choosing Installation folder for JDK and Netbeans 6.0

File:Installation folders

  • GlassFish V2 Installation(Option available only in Full installer)

File:GlassFish V2 Installation

  • Summary of packages that are to be installed


  • The Installation process


  • Completion of installation

File:Installation finished

Starting Netbeans IDE

A shortcut is placed on your desktop which can be used to launch the IDE

End Notes

Thus, we have seen how to succesfully set up a complete Java development environment and Netbeans 6.0 on "Fedora 7".

Comments/Suggestions awaited! Ankit Jain

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo