Step 5: Running the sample program
Procedure
Run the Java-PL/I sample program
with this command:
java jPassString
The output of the sample program, complete with the prompts for user input from
both Java™ and PL/I, is as follows:
>java jPassString
From Java: Enter a string or 'quit' to quit.
Java Prompt > A string entered in Java
From PLI: String retrieved from Java is: A string entered in Java
From PLI: Enter a string to be returned to Java:
A string entered in PL/I
From Java: String set by PL/I is: A string entered in PL/I
From Java: Enter a string or 'quit' to quit.
Java Prompt > quit
>Ensure the shared library location is added to LIBPATH or referenced by
the java.library.path property.