I need a way to run the following nokogiri script
require 'nokogiri'
def parseit()
end
and call parseit()while running below main.rb in jruby
require 'parser'
parseit()
Of course, the problem in jruby cannot be found 'nokogiri', since I did not install it as nokogiri-java throughjruby -S gem install nokogiri
The reason is that there is some error that I found in nokogiri running under Jruby, so I just installed nokogiri on Ruby not Jruby. parser.rbworks fine under Ruby.
So my goal is to run parseit () without having to install nokogiri on Jruby!
source
share