Using Java-inherited JRuby classes from Java

Hi,

I want to write a plug-in for a Java framework using JRuby. The plug-in
mechanism works by extending a Java class. Is there a way to accomplish
that
without using ugly glue code (a.l.a.
http://kenai.com/projects/jruby/pages/AccessingJRubyObjectInJava)?

I’ve tried to use the Ruby2Java compiler (
http://kenai.com/projects/ruby2java) but my class wouldn’t compile
(“compiler.rb:33:in `process_class’: MyPluginClass must be compilable
(ArgumentError)”).

Does anybody have any suggestions as to what I could try?

Regards,

Jake B.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs