To achieve interlanguage interoperability with Java, you need to follow certain rules and guidelines for using services in the Java Native Interface (JNI), coding data types, and compiling COBOL programs.
You can invoke methods that are written in Java from COBOL programs, and you can invoke methods that are written in COBOL from Java programs. You need to code COBOL object-oriented language for basic Java object capabilities. For additional Java capabilities, you can call JNI services.
Because Java programs might be multithreaded and use asynchronous signals, compile COBOL programs with the THREAD option.
related concepts
JDK support
related tasks
Compiling, linking, and running OO applications
Accessing JNI services
Sharing data with Java
Writing object-oriented programs
Preparing COBOL programs for multithreading
related references
JDK 5.0 Documentation