After much struggling to install NetBeans in Linux I have found a simple way to do it. Currently this installs NetBeans version 5.5.1.
Open the Synaptic Package Manager:
System >> Administration >> Synaptic Package Manager
Enable “Unsupported updates (gusty-backports)” by checking the box in:
Settings >> Repositories >> Updates
Click “Close”
Click “Reload” and then “Search”
Enter “netbeans” click the check box and select “Mark for installation”
You will be asked to “Mark additional required changes?”
Click “Mark”
Synaptic will now install NetBeans and it will be available via:
Applications >> Programming >> NetBeans