Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Lars Eriksson
RE: Can't access a java method from Ruby [ reply ]  
2012-10-25 12:36
Many Thank's, that solved the problem.
Using .public_methods is god way to sort out the above problem versus type interface problems.

/ Lars

By: arton Tajima
RE: Can't access a java method from Ruby [ reply ]  
2012-10-24 16:20
Did you try to call by class ?

ex)
pr.processA

Because static methods belong to the class but objects.


By: Lars Eriksson
Can't access a java method from Ruby [ reply ]  
2012-10-24 13:31
I have a java class there I can't access the 'processA' method:
public class A extends B {
public A()
public static double[] processA(double[], double[])
static{} }

Code:
Rjb::load(classpath ='path', jvmargs=[])
pr = Rjb::import('A')
processA = pr.new

Listing the methods with processA.public_methods lists a number of inherited methods but not the 'processA'