Compiling to .class files

Hi,

I’m rather confused by the numerous options for generating .class files
from
Ruby classes. I’d like to be able to reference Ruby classes from Java
code.

compiler2, ruby2java, and jrubyc all seem to have this functionality,
and
(so far) I’ve not had much success with any of them (possibly due to
version
skew among the various gems).

Could someone clue me in please, where should I start? Which of these
tools
should I use?

Thanks!

In case anyone stumbles upon this thread, I found my answer at
http://kenai.com/projects/jruby/pages/GeneratingJavaClasses

Yes, the new jrubyc --java support is the path forward for Java class
generation. It’s still a work in progress, but I think the only
feasible way to generate real Java classes from Ruby classes (right
now) is to introduce some mostly-static syntax.

Those of you interested in “ruby2java” or “compiler2” should have a
look at the linked article and let us know what you think.

On Sat, Mar 13, 2010 at 6:51 PM, entropic_rune [email protected]
wrote:

compiler2, ruby2java, and jrubyc all seem to have this functionality, and
(so far) I’ve not had much success with any of them (possibly due to version
skew among the various gems).
Could someone clue me in please, where should I start? Â Which of these
tools should I use?
Thanks!


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email