Netbeans was installed successfully!
Here is a screenshot.
First I installed netbeans by changing to root.
And this failed.
Suppose you are currently logged in as user1.
> Now type the password.
You are "root".
Now if you run the Netbeans installer , it fails.
But if you dont do "su", then Netbeans gets installed successfully!!