Steve (Gmail)
2014-06-10 17:43:17 UTC
Hello all,
I am trying to use a Java library/engine called Activiti. It can
callback into the library that uses it by supplying a class name and
implementing an interface. I have not been successful in doing that so I
thought I would try to do some simple java tests to see how all this
works and I am confused. I am a java novice, so please point out how
this should be done (if it is possible).
I have a gist that has a top level ruby file (caller_test.rb) that
requires some java code that calls back into either java or jruby. The
four java files (Caller.java, A.java, B.java and C.java) allow me to
test java reflection and then I try to get the classes defined in JRuby.
What is most curious is that if I compile a ruby file to java with
jrubyc and the --java flag, and then use javac with the jruby.jar file
to compile that generated java class, then the reflection sees it. If I
go straight to a class file with jrubyc, then it doesn't work.
Here is the gist
<https://gist.github.com/boberetezeke/ba919d3e45fca0f18a2d>.
Thanks for any help.
Steve
I am trying to use a Java library/engine called Activiti. It can
callback into the library that uses it by supplying a class name and
implementing an interface. I have not been successful in doing that so I
thought I would try to do some simple java tests to see how all this
works and I am confused. I am a java novice, so please point out how
this should be done (if it is possible).
I have a gist that has a top level ruby file (caller_test.rb) that
requires some java code that calls back into either java or jruby. The
four java files (Caller.java, A.java, B.java and C.java) allow me to
test java reflection and then I try to get the classes defined in JRuby.
What is most curious is that if I compile a ruby file to java with
jrubyc and the --java flag, and then use javac with the jruby.jar file
to compile that generated java class, then the reflection sees it. If I
go straight to a class file with jrubyc, then it doesn't work.
Here is the gist
<https://gist.github.com/boberetezeke/ba919d3e45fca0f18a2d>.
Thanks for any help.
Steve
--
"You must be the change you want to see in the world." Mahatma Gandhi
blog: http://steve.stewdle.com/blog
twitter: @boberetezeke
"You must be the change you want to see in the world." Mahatma Gandhi
blog: http://steve.stewdle.com/blog
twitter: @boberetezeke