Forum: JRuby RE: Re: How to properly setup requires

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Abdb670e1c130f96f947a94d03c02efa?d=identicon&s=25 Eric Christopherson (echristopherson)
on 2012-06-30 04:24
(Received via mailing list)
On Jun 29, 2012 4:05 PM, "D M" <> wrote:
> The exact problem is why do I have to explicitly set $LOAD_PATH to only
recognize the path of the application? I don't recall ever having to do
that in ruby/jruby before and I have never had to do that in any other
> Why does JRuby not know what the path is to the currently executing .rb
> given main.rb(which lives in lib) and http_proxy/http.rb why cant JRuby
require http.rb with a simple require 'http_proxy/http' in main.rb
all the ridiculous $LOAD_PATH contortions?

It sounds like you've started using 1.9 compatibility mode -- either
through the --1.9 option or .jrubyrc or just using JRuby 1.7.0preview1,
which enables it by default.
This topic is locked and can not be replied to.