Trying to get JRuby on Railsup and running with Netbeans 6.7.1

View: New views
3 Messages — Rating Filter:   Alert me  

Trying to get JRuby on Railsup and running with Netbeans 6.7.1

by LaughingLemon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm currently trying to get JRuby on Rails working with Netbeans 6.7.1 and I'm getting the following problems:



1) When I try to create a project, it comes up with "Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again." I take it this is a Rails problem, rather than Netbeans. The only installation of Rails is the default installation in "C:\Program Files\NetBeans 6.7.1\ruby2" (I'm using Windows Vista).

2) When I try to run either "gem" or "jruby" from the command line in "C:\Program Files\NetBeans 6.7.1\ruby2\jruby-1.2.0\bin" I get "The system cannot find the path specified".



Does anyone know how to fix this, especially on Windows? For example, which path is it talking about. I set the PATH in the environment to "C:\Program Files\NetBeans 6.7.1\ruby2\jruby-1.2.0\bin" but this didn't work either.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Trying to get JRuby on Railsup and running with Netbeans 6.7.1

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

LaughingLemon wrote:

> I'm currently trying to get JRuby on Rails working with Netbeans 6.7.1 and I'm getting the following problems:
>
>
>
> 1) When I try to create a project, it comes up with "Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again." I take it this is a Rails problem, rather than Netbeans. The only installation of Rails is the default installation in "C:\Program Files\NetBeans 6.7.1\ruby2" (I'm using Windows Vista).
>
> 2) When I try to run either "gem" or "jruby" from the command line in "C:\Program Files\NetBeans 6.7.1\ruby2\jruby-1.2.0\bin" I get "The system cannot find the path specified".
>
>
>
> Does anyone know how to fix this, especially on Windows? For example, which path is it talking about. I set the PATH in the environment to "C:\Program Files\NetBeans 6.7.1\ruby2\jruby-1.2.0\bin" but this didn't work either.
>  

Seems like the same problem as here:
http://jira.codehaus.org/browse/JRUBY-3847 - so you need to set the
JAVA_HOME env variable and also add JAVA_HOME\bin to PATH.

Let us know if that doesn't help.

Erno

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Trying to get JRuby on Railsup and running with Netbeans 6.7.1

by LaughingLemon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Cheers, mate. That worked a treat.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...