Compiling AS/400 application code for OLT

When compiling your application code for WebSphere Application Server for AS/400 (Standard or Advanced Edition), you should do the following:

  1. Compile your application with debug information as follows:
  2. Create a direct executable (CRTJVAPGM) for the debugabble class files, specifying an optimization level of 10 with the following command:
    CRTJVAPGM CLSF('[fully_qualified_IFS_pathname]') OPTIMIZE(10)

    where [fully_qualified_IFS_pathname] is the fully qualified path name of the .class file(s).

    For example,

    CRTJVAPGM CLSF('/QIBM/UserData/WebASAdv/default/servlets/com/mycompany/MyServlet.class') OPTIMIZE(10)
    CRTJVAPGM CLSF('/QIBM/UserData/WebASAdv/default/servlets/*.class') OPTIMIZE(10)

The next step is to enable OLT on your WebSphere Application server.