I am having troubles trying to implement a call to a Java program using "C$JAVA". Here is my Java code:
public class TestClass {
// Main
public static void main(String arg1) {
System.out.println("test");
System.out.println( "TestClass: main command line argument 1: " arg1 );
}
public void testMethod(String arg1)
{
System.out.println("test");
System.out.println( "testClass: testMethod argument 1: " arg1 );
}
}
When I try calling the main I get a return of -1 (Invalid Arg):
CALL "C$JAVA" USING CJAVA-CALLJAVAMAIN, "TestClass", "String1" GIVING STATUS-VAL.
When I try calling the testMethod I get a return of -3 (Class not found):
CALL "C$JAVA" USING CJAVA-CALLSTATIC, "TestClass", "testMethod", "(X)V", "String1" GIVING STATUS-VAL.
Can anyone help me out with this? I've also tried taking out the argument to Main but still get the -1 error.
Thanks!
#CJAVA