I have a Java library compiled in two directories:
Directory A
com.foo.bar.app.* //without test
Directory B
com.foo.bar.app.test.*
My objective, it is to call some simple java methods of com.foo.bar.app.test (with dependencies in the directory A) using the rjb gem.
In the examples, they instance with this:
Rjb::load(classpath = '.', jvmargs=[])
How can i use the rjb to call a method methodFromCreate() from a class com.foo.bar.app.test.create?
You could use something like:
I added de RJB_OPTIONS we are using at the moment just for exemplification, if you need any awt stuff remove dthe -Djava.awt,… option.