Showing posts with label Netbeans in Ubuntu. Show all posts
Showing posts with label Netbeans in Ubuntu. Show all posts

How to install Netbeans in Ubuntu

I'm used to use Netbeans 6.1m but find it quite lacking compare to Eclipse. After that, I settled with Eclipse for quite some time. Just last week, I happen to bump into Netbeans website and see Roumen's Ruby Flash Demos: Ruby on Rails in NetBeans (Part One)
Advanced Ruby editing features in NetBeans (Part Two).

After seeing the flash demos, I said, "Wow! Netbeans has improved tremendously. " So I decided to install it. Below is the steps:

1. Go to http://wiki.netbeans.org/wiki/view/MilestoneDownloads
2. Download Binaries and sources
3. Choose Netbeans version: 6.0 and Build Type: Daily, click continue
4. Choose the latest build, usually the one on the top (the product type is IDE)
5. Then download the linux installer (around ~45MB)
6. When the download completed, make the installer executable
chmod +x netbeans-6_0-daily-bin-200703151900-linux-15_Mar_2007_1900.bin
7. Then execute the installer by typing
./netbeans-6_0-daily-bin-200703151900-linux-15_Mar_2007_1900.bin
8. A graphical installer will appear, just follow the steps in the installer. It's damn easy that I can click cleck all the way to the end.
9. After installation completed, you'll find Netbeans under Application | Programming | Netbeans 6.0 Dev
10. Run it. When it fully loaded. Choose Tool menu and then Update Center.

11. Choose "Check the Web for available Updates and New Modules" and then click Next.
12. After it complete download the latest update available, choose Ruby on Rails Project support under "Available Updates and New Modules".

12. Click add button to include module that you've chosen. After you satisfied with the selection, click next to initate the installation. Get a cup of coffee while the downloading and installing happen.

13. After download completed, choose next and then choose finish. A dialog box will ask you whether to restart IDE and continue working. Choose restart IDE.
14. When the IDE restarted, choose the File | New Project, look for Ruby. If your installation is OK, you'll get the options as in below pic:


15. The installation has been successful. Do view the two flash demos I mentioned earlier to know further how to develop the Ruby and Rails applications under Netbeans.

Update (19th March 2007):
The easiest way to install Ruby and Rails is to choose Ruby under the Features module. It'll installed both Ruby and Ruby on Rails and all the dependencies.

##Known problem:
1. Netbeans not yet fully support running Rails outside JRuby as mentioned by Tor Norbye in his blog
2. There is no way to run 'script/console' yet.