Previous Topic: Access Individual Class MembersNext Topic: Compile the EABs


Create a CA Gen Runtime JAR File

The Java EAB makes references to various CA Gen runtime classes. In order for the Java compilation to succeed, a JAR file containing the CA Gen classes must be referenced.

Follow these steps:

  1. On the Windows system, open a Command Prompt window.
  2. Set the environment variable JAVA_HOME to the disk and directory where Java SE is located:
    set JAVA_HOME=C:\Program Files\Java\jre#.#.#_##\
    
  3. Change to the <CA-Gen-root>\GEN\CLASSES directory:
    cd "%Genxx%" 
    cd gen\classes 
    

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

  4. Execute the batch file MKJAVART with the appropriate case-sensitive parameters exactly as follows:

    Note: It is good practice to put the CA Gen version number in the JAR file's name.

    MKJAVART genrt.xx.jar EJB
    

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

Alternatively, the CA Gen runtime JAR file is created during the build of the generated application. The file, named genrt.xx.jar where xx is the CA Gen version number, is located in the <model-directory>\java\deploy.j2ee. This file can be copied to the directory where EAB sources have been copied and may be referenced directly.