NOTE: *JDK * is required for installing and running the Java SE, Java EE and All NetBeans Bundles.
to install it see this post -> #2282 or #2975 i recommend you the ORACLE JAVA.
Install Netbeans
Go to Netbeans download page and download the netbeans Linux (x86/x64) .sh installer file (like netbeans-7.2.1-ml-linux.sh).
Go to Downloader folders.
Open a Terminal.
Type the below code in terminal and hit enter.
cd Downloads
Then type below code in terminal and hit enter
sudo chmod +x netbeans-*
Type your root password if needed and press enter.
Then type below code and press enter
sudo ./netbeans-*
And then install Netbeans from GUI installer window. After the successful installation, click Activities -> Search And type netbeans in the search field or find in the programmer aplications. And Netbeans IDE 7.2.1 to open.
To uninstall the IDE:
Shut down the IDE.
In the IDE installation directory, typically in your home directory there is a directory called netbeans. Once inside it, run the uninstaller:
./uninstall.sh
At the Summary page, click Uninstall.
After uninstallation completes, click Finish.
To uninstall GlassFish Server Open Source Edition:
Shut down the IDE.
Locate the application server installation directory.
Linux root /usr/local/glassfish-3.1
In your home directory there is a director call glassfish look inside and you can find it, run the file :
./uninstall.sh
At the Summary page, click Uninstall.
After uninstallation completes, click Finish.
please could you open a terminal and type -> java -version and update your post with this information