The first sample program we will write is yet another
variation of the "Hello World!" program.
Our "Hello World!" program has one Java class, callingPLI.java.
Our native method, written in PL/I, is contained in hiFromPLI.pli.
Here is a brief overview of the steps for creating this sample program:
- Write a Java program that defines a class containing a native
method, loads the native load library, and calls the native method.
- Compile the Java program to create a Java class.
- Write a PL/I program that implements the native method and displays
the "Hello!" text.
- Compile and link the PL/I program.
- Run the Java program which calls the native method in the PL/I
program.