On Wed, Aug 20, 2008 at 10:06 AM, Axel Etzold <AEtzold / gmx.de> wrote:
> Dear all,
>
> I am having trouble loading a gem in Jruby, Ubuntu 8.04 persistently says it can't find it:
>
> /usr/local/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require': no such file to load -- profligacy/swing (LoadError)
>
> swing.rb is here on my system:
>
> /usr/local/jruby-1.1.3/samples/minijava/swing.rb
> /usr/local/profligacy-1.0/lib/profligacy/swing.rb
> /usr/local/lib/ruby/gems/1.8/gems/profligacy-1.0-java/lib/profligacy/swing.rb
>
> ------------------------------------------------------------------------------------
>
> It tried changing the PATH variable in .bashrc, but still, it doesn't work.
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/jruby-1.1.3/bin
>
> Is there something special that one has to do in JRuby to find gems ?

PATH doesn't have any effect on gems, but GEM_HOME and GEM_PATH do. Do
you by chance have either of those set in your environment?

/Nick