I am testing in my local database on CALLJ using jBASIC. In jBASIC
routine, when i execute CALLJ, it will throw an error saying:-
Exception in thread "main" java.lang.NoSuchMethodError: testCall
and in error handler will return error "Cannot find object Constructor!"
My CLASSPATH variable is set as .;c:\t24db\bnk.run\test.jar
I am using XP, jbase 5.0, R7 as my local database.
Below is the java routine:-
package mypackage;
public class Test {
static int i = 0;
private Test() {
}
public String testCall(String s){
return ("Java Received : " + s) ;
}
}
My CALLJ syntax is :-
CALLJ "mypackage.Test","testCall","TESTING" SETTING ret ON ERROR
GOSUB ERROR.HANDLER
END
Any guidance is appreciated.
--
Thank you,
Foong
Thanks in advance.
--
Thank you and Regards,
Foong Yee
package mypackage;
public class Test {
static int i = 0;
private Test() {
}
public static String testCall(String s){
return ("Java Received : " + s) ;
}
}
Jason
Tried that but problem still prevail. I am suspecting my local
environment variable or I have missed out any settings that is needed
for CALLJ function.
Thanks for the prompt reply. Tried that but problem still prevail. I am suspecting my local environment variable or I have missed out any settings that is needed for CALLJ function.