Skip to main content

Ruby development support advancing in NetBeans 6

As an outsider looking in it's difficult to determine when the time is right to try out new bleeding-edge NetBeans features. One new feature being developed for for NetBeans 6 is Ruby and Rails support. It doesn't come bundled with the latest milestone release (7). Instead you have to download it from the Update Center.

The Update Center modules are in a folder labeled 'Ruby'. With the Ruby modules NetBeans acquires the tools to create Ruby projects as well as create Rails projects that run on top of the Ruby tools. Unlike Eclipse's Ruby support, NetBeans uses JRuby entirely. There might be arguments as to which is better, but having tried both I see no advantage of one over the other. If there is any kind of advantage then it would be with NetBeans, since it can be installed and run without an external Ruby installation. But I can't imagine a Ruby developer not having a Ruby installation. Nor could I imagine a developer choosing JRuby over standard Ruby. JRuby is slower, and compared to the upcoming YARV, much, much slower. See "Ruby Implementations Shootout: Ruby vs Yarv vs JRuby vs Gardens Point Ruby .NET vs Rubinius vs Cardinal" for further details. I'd recommend that if you use NetBeans Ruby to develop and initially test, then deploy to regular Ruby to finish testing.

I also learned why Tor Norbye is called "a programming machine" and "epic". Yes. He is. I could not create a Rails project when I first installed the Ruby modules from the Update Center. So I sent an email to Charles Ditzel with a cry for help. Charles forwarded it to Tor. And Tor then replied back. We passed a number of emails between us, but in less than 12 hours Tor had solved the problem and provided a solution. It turned out that the update center modules were missing two files; activesupport-1.3.1.gemspec and activerecord-1.14.4.gemspec. Tor sent me the files, I dropped them where they were supposed to be, and bingo! Everything worked after that. There's even a bug (with fix) filed against the problem.

Here's a successful creation of a Rails application, and the automatic startup of WEBrick within the IDE running on OpenSuse 10.2.

Followed by the ubiquitous Rails stock web page.

Being an initial release running in a NetBeans milestone (essentially an alpha), there are some rough edges. But that's to be expected. I hope, as a user, I can provide quality feedback to make Ruby support as successful as I believe it can be. Far more valuable than the technology being developed are the people developing the technology. I've 'met' a lot of really great people lately as I've written about my various experiences with Suse, Ubuntu and NetBeans. Tor Norbye and Charles Ditzel are two more super folks. Thanks guys for all your help.


  1. Thank you so much for the compliments!

    One comment on JRuby: JRuby and Rails are bundled to give you a very nice and clean out-of-the-box experience. No fiddling with other installers, modifying PATH variables, etc. (Unfortunately as an early adopter it didn't work out that way for you - but it should be easier for everyone else now that most of the issues are resolved.)

    You can however use native ruby and rails if you want. You can modify it under Tools | Options (Preferences on the Mac) under Miscellaneous. There are apparently problems with this on Windows; there is some documentation of the issue

    On Linux it worked for me - but note that you have to restart after modifying the ruby pointer. See
    issue 89234 for more.

    Yes, I will try to make this more intuitive, something ala the Java Platform manager.

  2. Performance is about to become the primary goal for JRuby development, so rest assured we're working on it. And of the benchmarks in that shootout, JRuby is already faster than MRI for the ones we can compile with our prototype compiler. Things should improve very quickly over the next two months.

  3. Any change anyone else can get the two files need to make ruby work in netbeans?


  4. As a matter of fact Ruby language was created much earlier than even PHP, but it was used for the most part in Japan. The situation remained like this until Rails came in, owing to David Heinemeier Hansson. Combined Ruby language and Rails framework, or simply Ruby on Rails, have become a powerful and highly effective tool in developing web applications, used by programmers all around the globe. Moreover, Ruby has a great future as it's quite possible that in a few years other even better frameworks designed for it will appear. ruby on rails canada


Post a Comment

All comments are checked. Comment SPAM will be blocked and deleted.

Popular posts from this blog

A Decade Long Religious Con Job

I rarely write inflammatory (what some might call trolling) titles to a post, but this building you see before you deserves it. I've been seeing this building next to I-4 just east of Altamonte/436 and Crane's Roost for nearly 12 years, and never knew who owned it. Today on a trip up to Lake Mary with my wife I saw it yet again. That's when I told her I wanted to stop by on the way back and poke around the property, and photograph any parts of it if I could.

What I discovered was this still unfinished eighteen story (I counted) white elephant, overgrown with weeds and yet still under slow-motion construction. It looks impressive with its exterior glass curtain walls, but that impression is quickly lost when you see the unfinished lower stories and look inside to the unfinished interior spaces.

A quick check via Google leads to an article written in 2010 by the Orlando Sentinel about the Majesty Tower. Based on what I read in the article it's owned by SuperChannel 55 WA…

Be Careful of Capital One Mailings

Capitol One ("What's in your wallet?") sent me a bit of deceptive snail mail today. I felt sure it was a credit card offer, and sure enough, it was. I open all credit card offers and shred them before putting them in the trash. Normally I just scan the front to make sure I don't miss anything; the Capital One offer made me stop for a moment and strike a bit of fear into my heart.

The letter's opening sentence read:
Our records as of December 30, 2009 indicate your Capital One Platinum MasterCard offer is currently valid and active.Not paying close attention during the first reading, I quickly developed this irrational worry that I was actually on the hook for something important, but I wasn't quite sure what. The letter listed "three ways to reply" at the bottom; via phone, the internet, and regular snail mail. I elected to call.

Once I reached the automated phone response system, the first entry offered was '1', to "activate my Capital …

cat-in-a-box channels greta garbo

So I'm sitting at my computer, when I start to notice a racket in back. I ignore it for a while until I hear a load "thump!", as if something had been dropped on the floor, followed by a lot of loud rattling. I turn around and see Lucy in the box just having a grand old time, rolling around and rattling that box a good one. I grab the GX1 and snap a few shots before she notices me and the camera, then leaps out and back into her chair (which used to be my chair before she decided it was her chair).

Just like caring for Katie my black Lab taught me about dogs, caring for Lucy is teaching me about cats. She finds me fascinating, as I do her. And she expresses great affection and love toward me without coaxing. I try to return the affection and love, but she is a cat, and she takes a bat at me on occasion, although I think that's just her being playful. She always has her claws in when she does that.

She sits next to me during the evening in her chair while I sit in mi…