From: Charles Oliver Nutter Date: 2006-10-22T00:23:43+09:00 Subject: Re: Calling a Java Class Zouplaz wrote: > You could use xml-rpc or something similar to call a java process from a > ruby process... > > You have to embbed your class in a java server, like Jetty (which is > pretty lightweighted) > > It's a good solution if your project is big enough (is worth the added > work) Of course I need to chime in and say that although there are other options, calling a Java class is trivially easy in JRuby, so if it's simplicity you're looking for it might be the best way to go. Other options are great if you have the restriction of running only under the C implementation, but for straight Ruby-to-Java calling JRuby is the cleanest and simplest option. -- Charles Oliver Nutter, JRuby Core Developer headius@headius.com -- charles.o.nutter@sun.com Blogging at headius.blogspot.com