Hello,
I'm using jbase 5.11, and I'm trying to use CALLJ for Java routines. I've been able to call a simple routine as follows:
// PickBasic
CALLJ "mytestclass", "$mystaticmethod2", 'TONY' SETTING ret ON ERROR
err = SYSTEM(0)
DISPLAY "ERROR ":err
END
DISPLAY ret
// Java
public static String mystaticmethod2(String s) {
System.out.println("mystaticmethod2 ");
return "test";
}
but I have two issues I would like to address:
1) The classpath needs to be defined before starting jbase. If I set it or change it during the jbase session, it has no effect. Is there any way I do this? Ideally I would like to set the classpath just before calling CALLJ.
2) The only arguments/return objects possible seem to be String. Is there any way to pass multiple arguments, or an array of Strings? Is there any way it can return something an array of Strings, mapped to a dynamic array, or similar?
Thanks
JL