Previous Topic: Copy Files from the EJB Build MachineNext Topic: Change COMMCFG.INI File


Set the CLASSPATH

For the client to successfully access the generated EJBs, the CLASSPATH must be set so that the application server JAR files, the CA Gen runtime JAR file, and the <Server Procedure Step>_dpy.jar files are in the CLASSPATH.

CLASSPATH is a semicolon-separated list of directories containing class files and/or a semicolon-separated list of JAR files. For example:

CLASSPATH=c:\MyApp\classes;c:\OtherApp\sample.jar

The CLASSPATH can be set in a variety of ways. In some cases, creating a small batch file may be a good choice. In other environments, manually setting the system environment variable is the only option.

Either way, the following tasks must be performed:

Follow these steps:

  1. Set the CLASSPATH to the list of JAR files copied from the target application server to the client system:
    <app‑server‑dir>\<file1>.jar; <app‑server‑dir>\<file2>.jar
    
  2. Append the consolidated CA Gen Java Runtime JAR file to the CLASSPATH:
    <CA-Gen‑root>\gen\classes\genrt.xx.jar
    

    Note: xx refers to the current release of CA Gen. For the current release number, see the Release Notes.

  3. Append the CLASSPATH with the list of <Server Procedure Step>_dpy.jar files copied from the EJB build machine to the client system:
    <model‑dir>\c\<Server Procedure Step-1>_dpy.jar;<model‑dir>\c\<Server Procedure Step-2>_dpy.jar
    

    Remember to separate each directory or file with a semicolon.