1

I have 2 file in folder: ~/hello.rb and ~/help.rb. hello.rb requires help.rb. I have compiled them into ~/build/ folder with:

jrubyc -t build/ .

When i run hello.rb with jruby, jruby searches for help.class in ~/, but I want to tell it to look in ~/build/ folder. How can I do it?

1 Answer 1

3

Not quite sure what you're trying to do, but this seems to be what you're asking...

require 'build/help'

Alternatively, us the -I switch to include a path at run time:

jruby -Ibuild hello.rb
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.