Installing Netbeans and JDK on CentOs 5.5 March 18, 2011Posted by tournasdimitrios1 in Uncategorized.
This quick how-to will demonstrate how to install Netbeans on your CentOs 5.5 box . The current stable version of Netbeans is Netbeans 6.9 and it requires the Java SE Development Kit (JDK) 6.0 Update 13 or later (the 6.9.1 version of the IDE can not be installed using JDK 5 ) . JDK is not installed by defauld on any Linux distribution , so it must first be installed , before the Netbeans IDE installation . Actually two JDK’s are availble , Sun JDK and OpenJDK , most Linux repositories provide the second JDK . The code bases differ somewhat in the presence of non-open-source components, but they converge more and more all the time. With OpenJDK there is at least the possibility of compiling it yourself if you bump into a platform that is not supported .
- SUN JDK and OpenJDK share most source code.
- SUN JDK still use a few close source components I believe.
- SUN JDK is the most robust/stable of the two.
- The OpenJDK may expose bugs ( IMOH ) which may cause “unexplainable” behaviours in the code as opposed to the Sun JDK. You don’t want to have that. You can run them side by side, but that would not make much sense, unless you intend to develop with/for a specific JDK.
- SUN JDK is supported by SUN/Oracle.
Let’s get started :
- Go to the official site of Netbeans and download the version of your choice . Actually you will download a Bash script that will automatically make the installation .
- Make the script executable
chmod +x netbeans-6.9.1-ml-php-linux.sh
- Run the script : ./netbeans-6.9.1-ml-php-linux.sh
Probably you will get an error that your box has not yet the JDK installed .
- Download Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 24) http://www.oracle.com/technetwork/java/javase/downloads/index.html.
- Make the bin executable
chmod +x jdk-6u24-linux-i586-rpm.bin
- Run the bin file
- Verify that Java SDK is installed on your box
- Run again the Netbeans installer script and follow the instructions
- Run Netbeans from Applications –> Programming –> Netbeans