Chapter 6. Java Native Interface (JNI) 101
Running the example
You need to make sure that the library is accessible when running the Java
application. For example, if the library and Java class exists in the same directory
in USS, then you need to include the current directory (that is, “.”) in the LIBPATH
environmental variable:
export LIBPATH=${LIBPATH}:.
export CLASSPATH=${CLASSPATH}:.
After these environmental variables are set correctly, you should be able to run
the application.
6.3.2 Calling a COBOL program from a Java application
In this section, we demonstrate how to call a COBOL program from a Java
application. The Java program can be invoked via the command prompt under
USS, or it can be submitted as a batch job.
Overview
Because Java ...