The IBM® i5/OS™ PASE native method for Java™ example calls an instance of a native C method that then uses Java Native Interface (JNI) to call back into Java code. Rather than accessing the string directly from Java code, the example calls a native method that then calls back into Java through JNI to get the string value.
To see HTML versions of the example source files, use the following links:
Before you can run the i5/OS PASE native method example, you must complete the following tasks:
After you complete the previous tasks, you can run the example. Use either of the following commands to run the example program:
JAVA CLASS(PaseExample1) CLASSPATH('/home/example')
cd /home/example java PaseExample1