Help: Can't require gems

I just installed JRuby by downloading the source and then using ant.

I installed the gem “profligacy” for the easy use of Swing.

Now i wanted to try out the examples, but when using:

require ‘profligacy’

it says:

test.rb:1:in `require’: no such file to load – profligacy (LoadError)
from test.rb:1

What did i do wrong ?

Im not sure how you may type it in jruby, but in ruby mri you usually
need
to require rubygems as well.

require ‘rubygems’

Aaron McLeod wrote:

Im not sure how you may type it in jruby, but in ruby mri you usually
need
to require rubygems as well.

require ‘rubygems’

Oh, yeah, that’s the point. Im Sorry. Just used Rails before, and never
had to do this there. :wink: