Hello, I’m a student fairly new at ruby programming, and I’m having a
huge
deal of trouble just to get Jruby running. I was wondering could you
gusy
help me figure out how to setup Jruby on window 7?
Here is the supporting information and What I have tried so far:
I followed the instruction at github for Jruby installation, install
Jruby-1.7.13, JDK1.70,
and set the environmental variable to the following:
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_60\bin
JRUBY_HOME = C:\Jruby\jruby-1.7.13\bin
PATH =
C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\Jruby\jruby-1.7.13\bin
pik 0.2.8
When I tried to test some import java function using SubLime text
editor:
To start off small, the test program consist of only a single line of
require ‘java’
I get the following error:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': cannot load such file -- java (LoadError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from C:/RailsInstaller/Ruby Projects/practice notes.rb:257:in `’
Okay, I figure I just need to switch from ruby to Jruby via pik (since
window doesn’t have RVM equivalent)
When I try to add the path of Jruby via Pik using the following
commands:
c:\bin>pik add C:\Jruby\jruby-1.7.13\bin
There was an error.
Error: private method `gsub’ called for nil:NilClass
in: pik/commands/command.rb:124:in get_version' in: pik/commands/add_command.rb:23:in
add’
in: pik/commands/add_command.rb:13:in `execute’
in: pik_runner:33
I get the above error, the googled solution recommend I try to set the
environmental variable JAVA_HOME and JRUBY_HOME to their corresponding
paths. Which I already did before hand and that doesn’t see to help.
I tried uninstall and reinstall Jruby and Jdk several times, it did not
help
at all.
Is there a way a way to manually change the Jruby’s load path?
Please bear in mind, I’m a total noob at programming, so I’m not too
familiar with many technical terms. So If it’s possible, please simplify
and
be as specific as possible in your instruction. Such as specify where to
type what command, or at specify enough terms so I can google them on my
own.
Thank you for your time
On the side notes, does Jruby share all the gems that were donwload by
other
ruby version? or do I need to duplicate all the gems file in Jruby’s
equivalent library?
–
View this message in context:
http://ruby.11.x6.nabble.com/setup-issue-Cannot-load-java-Jruby-1-7-13-window-7-tp5000589.html
Sent from the JRuby - User mailing list archive at Nabble.com.