Java Native Interface (JNI) is a native programming interface that is part of the Java Software Development Kit (SDK). This interface defines the infrastructure between Java and other languages, such as C and C++, COBOL, PL/I and assembly. It is available on z/OSÂ® for all Language Environment-compliant languages.
JNI provides the solution for two-way communications.
- It defines a method for Java to invoke native methods.
- It also defines a method, via a defined API, for native code to invoke Java code. With the defined API, the native code can manipulate Java objects, call Java methods, and share data with Java.
Enterprise COBOL introduced the concept of Object-Oriented (OO) COBOL that simplifies the interactions between Java and COBOL. Using OO COBOL is now the easiest and most convenient way to create OO applications, in particular when crossing the boundary between Java and COBOL is required.