Acc. to my previous blog links they are saying to install Java sdk. I already have it on my laptop. If you don't have it then you can install it by executing the following 2 commands on terminal.
Then we have to go to this website and download our respective bundle. I have downloaded the package with all the bundles :P
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-font
Waiting for download to finish...
Now I have downloaded the file. Now right click on it and goto Properties and in the Permissions tab Check Allow file to execute as program.
Now Run the program(not in terminal)
And Now I am playing with netbeans and I think it is pretty cool! Enjoy playing netbeans!!