Example: Prepare your iSeries server

Before running the IBM® i5/OS™ PASE native method for Java™ example, you need to prepare your iSeries™ server to run the example. Preparing the server requires copying the files to the server and adding the necessary environment variables to run the example.

To prepare your server, complete the following steps:

  1. Create the following integrated file system directory on the server that you want to contain the example files. For example, use the following control language (CL) command to create the directory named /home/example:
         mkdir /home/example
  2. Copy the following files to the new directory:
    • PaseExample1.class
    • libPaseExample1.so
  3. From an iSeries command prompt, use the following control language (CL) commands to add the necessary environment variables:
         addenvvar PASE_THREAD_ATTACH 'Y'
         addenvvar PASE_LIBPATH '/home/example'
         addenvvar QIBM_JAVA_PASE_STARTUP '/usr/lib/start32'

Note: When using PASE native methods from an i5/OS PASE terminal session, a 32-bit PASE environment is already started. In this case, set only PASE_THREAD_ATTACH to Y and. PASE_LIBPATH to the path for the PASE native method libraries. In this situation, when you define QIBM_JAVA_PASE_STARTUP, the JVM does not successfully start.

For more information about the added environment variables, see the following topic:

For more information about the IBM i5/OS PASE native method for Java example, see the following topics: