I am facing an issue while using the sample Acucobol program to call Java from cobol. I have small piece of code in my cobol program as :
CALL "C$JAVA" USING CJAVA-CALLSTATIC "C:\\Javaprojects\\TestCobol2Java\\bin\\CobolCallingJava", "CobolCallingJavaInt", "(I)I", FIELD-INT, FIELD-RET GIVING STATUS-VAL
it returns status-val as "-3" which seems classnot found. Not sure if I mentioned the full path of the class file why it still could not found?
Any help?
Why have you place PATHING CALL "C$JAVA" USING CJAVA-CALLSTATIC "C:\\Javaprojects\\TestCobol2Java\\bin\\CobolCallingJava"
whereas our example is
CALL "C$JAVA" USING CJAVA-CALLSTATIC, "CobolCallingJava", "CobolCallingJavaInt", "(I)I", FIELD-INT, FIELD-RET GIVING STATUS-VAL
Typically pathing as far as objects and resources are taken care of via configuration variables.
Have you tried setting up and executing our Java examples C:\\Program Files (x86)\\Micro Focus\\Acucbl925\\AcuGT\\sample\\java