Install RVM and Ruby version what ever you want .
Once you done with ruby installation,
From terminal type below command..
$rvm use 1.9.1
$cd /home/alan/programs/netbeans_6_8/bin ***or wherever your netbeans is installed
I hope, it will help.
For details visit http://www.skorks.com/2010/01/using-multiple-rubies-seamlessly-on-the-one-machine-with-rvm/comment-page-1/#comment-3422
1. Make sure, You Added PPA repository to my Ubuntu.
sudo add-apt-repository ppa:ferramroberto/java
2.After adding PPA, update your system apt:
sudo apt-get update
3.Install the Java Development Kit:
sudo apt-get install sun-java6-jdk
If you have problem with java installation , take a look to install-java-and-java-browser-plugin-ubantu-11-10 .
4. Go to the folder where you want to download NetBeans and download by typing:
5.Give yourself permissions to execute the install script you have just downloaded:
chmod u+x netbeans-7.0.1-ml-php-linux.sh
6. Now run netbeans:
Just do next as window, and click desktop icon to start NetBeans:
That’s it. Enjoy……………