# NetBeans 6.0/Script Console Window

**URL:** <https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311>\
**Category:** Rails\
**Created:** [March 9, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311 "2007-03-09T16:33:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [March 9, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311/1 "2007-03-09T16:33:01Z")

</div>

Has anyone figured out how to turn NetBeans IRB window into Ruby on  
Rails script/console window where the gems like ActiveRecord, ActionPack  
etc are recognized? May be an easy one for the Rails Guru’s out there,  
not for me. By default, the NetBeans IRB window only loads Ruby. I am  
trying to see how well NetBeans 6.0’s Ruby/RoR support works fully  
realizing that it is an alpha environment?  
Bharat

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [March 9, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311/2 "2007-03-09T19:14:44Z")

</div>

OK. Here is what I got thus far. I have installed InstantRails which  
comes with its own “everything” and works well. Just point your  
NetBeans 6.0 to InstantRail’s instance of MySQL. You can easily do that  
since NetBeans only wants the MySQL URL and the database could be  
running anywhere. Now use NetBeans to do editing/browsing etc. and use  
InstantRail’s Console to do interactive debugging etc. You will have  
multiple servers loaded this way, i.e. two instances of “Java” since  
NetBeans defaults to JRuby and launches its own version of Webrick in a  
JVM etc. If you have sufficiant RAM (I have two Gigs), you can have a  
great development environment.  
Looking good. My goal is to see how well can we leverage the NetBeans  
environment for Ruby/RoR development.

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [March 9, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311/3 "2007-03-09T22:11:16Z")

</div>

My experience running Daily builds of NB6 w/ Ruby have been  
interesting over the last two weeks. The editor and code formatting  
are great. The rest of the IDE pales in comparison to Eclipse  
Runtime w/ RDT, RadRails, Subclipse. I like the editor though.

You can switch it off of JRuby on to your regular Ruby & Rails install  
in the prefs.

IRB in NB is just IRB [AFAIK] and not the script/console you get  
with rails.

The other thing that SUX is that it fires up webrick and there is no  
way to stop/start webrick (I use mongrel). Even if you quit NB it  
leaves WB hanging as an orphaned thread a lot of the time.

On Mar 9, 8:14 am, Bharat R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [March 9, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/netbeans-6-0-script-console-window/88311/4 "2007-03-09T22:26:26Z")

</div>

dysinger wrote:

> My experience running Daily builds of NB6 w/ Ruby have been  
> interesting over the last two weeks. The editor and code formatting  
> are great. The rest of the IDE pales in comparison to Eclipse  
> Runtime w/ RDT, RadRails, Subclipse. I like the editor though.
> 
> You can switch it off of JRuby on to your regular Ruby & Rails install  
> in the prefs.
> 
> IRB in NB is just IRB [AFAIK] and not the script/console you get  
> with rails.
> 
> The other thing that SUX is that it fires up webrick and there is no  
> way to stop/start webrick (I use mongrel). Even if you quit NB it  
> leaves WB hanging as an orphaned thread a lot of the time.
> 
> On Mar 9, 8:14 am, Bharat R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Hello dysinger,  
You wrote:  
"The rest of the IDE pales in comparison to Eclipse

> Runtime w/ RDT, RadRails, Subclipse. I like the editor though."  
> I have not worked with any of them. Would love to hear from you the  
> specifics.  
> Another point:

"\> You can switch it off of JRuby on to your regular Ruby & Rails  
install

> in the prefs."

I am trying to figure this out. How do you do that? If you can share  
the steps to do this, that would be great.

Thanks

p.s. Eclipse foundation just announced that they will be officially  
supporting Ruby amongst other scripting languages. What do you think of  
it?
