From: thiagobrandam Date: 2008-10-05T11:08:26+09:00 Subject: Re: Syntax to include custom Java classes I don't know if this is the best way but here it goes: Every .class file that has a correspondent class I may use in a .rb file, I can merge them in a .jar file. Then, I just have to call require 'name_of_the_file.jar' (if it's in the same directory). To use a particular class, say ClassName, just call import 'ClassName'. Everything else is pretty much the same as though you were only using Ruby (except for the fact that you must use jruby to interpret). As for whether it would be better in a jruby list, I didn't know that the scope of this one was MRI solely. Next time I'll think twice before posting newbie questions in the wrong places. Sorry for any incovenience. Thiago On Oct 4, 9:15 pm, James Britt wrote: > thiagobrandam wrote: > > I figured out how to do. > > Side note:  There's a good change that if one person has a question > about something, then someone else will, too. > > If you found an answer for your problem it would be helpful to post it > here so that others can find it or reference it. > > (There's another matter of whether the original question would have been > better asked on the JRuby list, but here it is, so ...) > > -- > James Britt > > www.happycamperstudios.com  - Wicked Cool Codingwww.jamesbritt.com          - Playing with Better Toyswww.ruby-doc.org            - Ruby Help & Documentationwww.rubystuff.com           - The Ruby Store for Ruby Stuff