Creating a New Java Object

Create a new Java object using the CJAVA-NEW op-code to the C$JAVA routine. Be sure to pass a fully qualified package/class name and a constructor signature. Use the GIVING statement to return the object handle. Here is an example of how to create a new Java object:

CALL "C$JAVA" USING CJAVA-NEW, "acuCobolGT/CAcuCobol", "()V" GIVING OBJECT-HANDLE.