So, I came up with the general idea of writing code in JRuby and then accessing all classes through Java. I have no idea if this is possible, but I still wanted to ask. Let's say I have JRuby code:
class adder def addme return 22 end end
If I compiled this with jrubyc, I could then do something like this in java:
import adder; class anything { void testMethod() { adder a = new adder(); int x = a.addme(); } }
Having looked at it now, I think that Java will have a zero idea of which application for the test element test will be returned so that it does not work. I don’t know, but I still wanted to throw it away.
thanks
java ruby compilation jruby
John baker
source share