Uninitialized constant Net::SSH

Hello everyone,

           Pls i am a newbie to Ruby. I am trying to develop a web

app that
connects to a remote server and executes some commands. In trying to
connect, i get this error msg:

uninitialized constant Net::SSH
RAILS_ROOT: ./script/…/config/…

Application Trace | Framework Trace | Full Trace
D:/Program Files/netBeans/NetBeans
6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:263:in
load_missing_constant' D:/Program Files/netBeans/NetBeans 6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:inconst_missing’
D:/NetBeansProjects/webstats/app/controllers/apache/main_controller.rb:45:in
`connect’

I am using the net-ssh-2.0.1.gem and the ssh.rb references the modules
like this:

module Net

module SSH

On 27 May 2008, at 10:42, Abdul Mohammed wrote:

Application Trace | Framework Trace | Full Trace
D:/Program Files/netBeans/NetBeans
6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/activesupport-1.4.4/
lib/active_support/dependencies.rb:263:in
`load_missing_constant’

Is the net-ssh gem in jruby’s gem folder ?

Fred

Frederick C. wrote:

On 27 May 2008, at 10:42, Abdul Mohammed wrote:

Application Trace | Framework Trace | Full Trace
D:/Program Files/netBeans/NetBeans
6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/activesupport-1.4.4/
lib/active_support/dependencies.rb:263:in
`load_missing_constant’

Is the net-ssh gem in jruby’s gem folder ?

Fred

This is my path D:\Program Files\netBeans\NetBeans
6.0.1\ruby1\jruby-1.0.2\lib\ruby\gems\1.8\gems\net-ssh-2.0.1\net-ssh.gemspec