 |
Forums |
Admin Start New Thread
By: Altaf Dhamani
RE: Getting Started Error [ reply ] 2010-07-16 05:50
|
just a few things to check
1. ensure that your environment path is correctly set up.
export JRUBY_HOME=/usr/local/jruby
PATH=$PATH:$JRUBY_HOME/bin
export PATH
2. ensure that updated ver. of celerity is installed
jruby -S gem update --system
jruby -S gem install celerity
3. import 'rubygems' before 'celerity' in your script
require 'rubygems'
require 'celerity'
|
By: Jared Q
RE: Getting Started Error [ reply ] 2009-06-30 21:34
|
Just a couple of other possibilities for Windows based on my troubleshooting yesterday -
- Check your JRUBY_HOME environment variable and make sure it's pointing to the right place
- Check your PATH environment variable is pointing to the right places.
- Make sure you're using a recent version of JRuby
- Check for any weird interactions with the NetBeans IDE and it's JRuby install or config.
|
By: Moniruddin Ahammed
RE: Getting Started Error [ reply ] 2008-11-14 05:17
|
Hi Ben,
It seems that in Windows, your code is not able to get the path of ruby library celerity. Please add the following line on top our file
$:.unshift('<location of celerity library in wondows> ');
Thanks
Monir
|
By: Ben Hughes
RE: Getting Started Error [ reply ] 2008-11-12 13:57
|
Hi Moniruddin,
Thanks for your swift reply. I'm not executing the Library, the file I have called 'celerity.rb' is contains the following code:
require 'rubygems'
require 'celerity'
browser = Celerity::Browser.new
browser.goto('http://www.google.com')
browser.text_field(:name, 'q').value = 'Celerity'
browser.button(:name, 'btnG').click
puts "yay" if browser.text.include? 'celerity.rubyforge.org'
I have tried to rename the file to test.rb but get the same result.
I have followed the 'Getting Started' word for word, and this is the reult I get - there are only two commands to run (jruby -S gem install celerity) create the file (as above) and execute. This gives me the result show above (previous thread).
If I need to put the full path of the library in, should this be reflected in the Getting Started poage on the site?
Unless I totally have the wrong end of the stick :-)
Any help appreciated.
Ben
|
By: Moniruddin Ahammed
RE: Getting Started Error [ reply ] 2008-11-12 12:08
|
It seems that you are trying to execute the celerity.rb.Its library. You should use it not execute it.
The error is because of it could not find the path to load the library.
You can either set the loading path or give absolute path of the library in "require"
Thanks
Monir
|
By: Ben Hughes
Getting Started Error [ reply ] 2008-11-12 11:52
|
I'm having a problem running Celerity. I've followed the instal instructions and am getting the following issue:
C:\Programming\JRuby>jruby celerity.rb
C:/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `const_missing': uninitialized constant Celerity (NameError)
from celerity.rb:4
from celerity.rb:31:in `require'
from C:/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from celerity.rb:2
using the Getting Started example.
Any ideas?
|
|
 |