From: Axel Etzold Date: 2008-08-21T00:06:22+09:00 Subject: Jruby and gems 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 ? Below is the text of the script causing the error: require "rubygems" require 'java' require 'profligacy/swing' import 'javax.swing.JFrame' import 'javax.swing.JLabel' class SwingDemo def initialize jfrm = JFrame.new "A Simple Demo" jfrm.setSize(275,100) jfrm.default_close_operation = JFrame::EXIT_ON_CLOSE jlab = JLabel.new " Swing powers the modern Java GUI" jfrm.add jlab jfrm.pack jfrm.visible = true end end SwingUtilities.invoke_later proc { SwingDemo.new }.to_runnable ----------------------------------------------------------------------------------------------------- Thank you very much for your help. Best regards, Axel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f�r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer