To call Java from COBOL using the C$JAVA routine, perform the following steps:
By default, the JVM is loaded by the runtime the first time it executes a CALL "C$JAVA" statement. If you want to preload the JVM, use the PRELOAD_JAVA_LIBRARY variable. Use the JAVA_LIBRARY_NAME variable if you want to specify the DLL that exports the JNI API for loading the JVM. If desired, specify Java command-line options using the JAVA_OPTIONS variable. You can specify additional libraries and classpaths here as well.