# Netbeans6 + RoR errors

**URL:** <https://www.ruby-forum.com/t/netbeans6-ror-errors/117352>\
**Category:** Rails\
**Created:** [October 16, 2007, 7:09am UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352 "2007-10-16T07:09:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 16, 2007, 7:09am UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/1 "2007-10-16T07:09:47Z")

</div>

I’m having problems with running RoR applications, either imported  
from existing source or by creating a new project in NetBeans 6 beta

1. When I use the menu “run / test project” or “run / run main  
project” I get an error very similar to this:

(from test)

(in C:/flame-svn/test/RailsApplication1)  
“C:/flame-svn/test/RailsApplication1/config/boot”  
rake aborted!  
No such file or directory - C:/flame-svn/test/RailsApplication1/C:  
C:/flame-svn/test/RailsApplication1/rakefile:6  
(See full trace by running task with --trace)  
Click here to re-run task with tracing enabled

(from starting webrick)  
C:/Program Files/NetBeans 6.0 Beta  
1/ruby1/jruby-1.0.1/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or directory - C:/flame-svn/test/RailsApplication1/C: (Errno::ENOENT) from C:/Program Files/NetBeans 6.0 Beta 1/ruby1/jruby-1.0.1/lib/ruby/1.8/pathname.rb:453:in`realpath’  
from C:/Program Files/NetBeans 6.0 Beta  
1/ruby1/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:543:in  
`set_root_path!' from C:/Program Files/NetBeans 6.0 Beta 1/ruby1/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:509:in`initialize’  
from ./script/…/config/boot.rb:38:in `new' from ./script/../config/boot.rb:38:in`run’  
from ./script/…/config/boot.rb:38

Any idea what’s going on here?

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 16, 2007, 8:20am UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/2 "2007-10-16T08:20:42Z")

</div>

> ```
> from C:/Program Files/NetBeans 6.0 Beta
> 
> ```
> 
> 1/ruby1/jruby-1.0.1/lib/ruby/1.8/pathname.rb:453:in `realpath’  
> from C:/Program Files/NetBeans 6.0 Beta

Maybe because you are using JRuby?

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 16, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/3 "2007-10-16T17:25:01Z")

</div>

I’m using whatever netbeans6 uses by default. If there are changes I  
should be making here, please give me a hint. 🙂

–Michael

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 16, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/4 "2007-10-16T21:25:11Z")

</div>

On 10/16/07, Igor K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> but before installing rails change ruby interpreter in options menu to  
> that one you have installed from [ruby-lang.org](http://ruby-lang.org).

Ah ha! This is the step I believe I was missing. Thanks!

I had ruby, rails, and about 25 gems installed a long time ago. I  
suppose I could have used netbeans just to edit the files, but where’s  
the fun in that?

–Michael

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 20, 2007, 7:54am UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/5 "2007-10-20T07:54:35Z")

</div>

Michael G. wrote:

> On 10/16/07, Igor K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > but before installing rails change ruby interpreter in options menu to  
> > that one you have installed from [ruby-lang.org](http://ruby-lang.org).
> 
> Ah ha! This is the step I believe I was missing. Thanks!
> 
> I had ruby, rails, and about 25 gems installed a long time ago. I  
> suppose I could have used netbeans just to edit the files, but where’s  
> the fun in that?
> 
> –Michael

NetBeans 6.0 Beta installs JRuby 1.0.1 by default. The issue you have is  
that real path returned from Windows contains letter drive, which  
creates a problem on line 420 of realpath\_rec method of pathname.rb in  
that particular Jruby directory C:/Program Files/NetBeans 6.0 Beta  
1/ruby1/jruby-1.0.1/lib/ruby/1.8. I found a patch for this and  
incorporate it in the attached pathname.rb file. If you replace it in  
that particular directory, it should fix your problem in JRuby 1.0.1 and  
you are good to run your Rails app in NetBeans 6 Beta. You can diff the  
attached file to see what the patch is. I am running Rails 1.2.5 and  
NetBeans 6 Beta (JRuby) on Windows XP Professional. This patch is for  
JRuby only.

Good luck.

– Dan

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 16, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/6 "2007-10-16T21:16:51Z")

</div>

Ok,

first of all if you want to study Ruby(RoR), not JRuby you should  
install Ruby(native) from [ruby-lang.org](http://ruby-lang.org). Next you must install Rails  
framework(you can do it in different ways, for example using Netbeans -  
when you create new project showing you current Rails version which you  
can update or if you don’t have you can install. Also maybe you need to  
configure proxy in netbeans.

but before installing rails change ruby interpreter in options menu to  
that one you have installed from [ruby-lang.org](http://ruby-lang.org).

Also i recommend you small distribution of netbeans only for ruby,ror  
development - [http://deadlock.netbeans.org/hudson/job/ruby/](http://deadlock.netbeans.org/hudson/job/ruby/) . every hour  
it building a new version.

so i need to do:

1. [http://deadlock.netbeans.org/hudson/job/ruby/](http://deadlock.netbeans.org/hudson/job/ruby/)
2. [ruby-lang.org](http://ruby-lang.org), one click installer for windows
3. change ruby interpreter in options menu of netbeans
4. create new RoR project, but also update/install RoR framework, you  
will see the button

---

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [October 24, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/netbeans6-ror-errors/117352/7 "2007-10-24T23:38:07Z")

</div>

On Oct 19, 10:54 pm, Dan Ha [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> NetBeans6.0 Beta installs JRuby 1.0.1 by default. The issue you have is  
> that real path returned from Windows contains letter drive, which  
> creates a problem on line 420 of realpath\_rec method of pathname.rb in

Right - we’re hoping that a JRuby 1.0.2 will be released shortly with  
a fix for this, and we’ll incorporate it.

– Tor  
(NetBeans+Ruby team)
