Compile the component implementation

The component implementation classes must be placed in the Java class path for EAServer before we can generate skeletons and the EJB wrapper that integrates the component code into EAServer.

Your EAServer installation includes an Ant project to compile the component in the subdirectory samples/tutorial/java-corba. Source for the component is in JavaArithmeticImpl.java in the subdirectory src/com/sybase/easerver/tutorials/java.

The build.xml file defines an Ant project to compile the component and a test client. To ensure the component classes are in the EAServer Java class path, the Ant project compiles them to the EAServer genfiles/java/classes subdirectory.

StepsCompiling the component implementation

  1. At a command prompt, change to the EAServer samples/tutorial/java-corba subdirectory.

  2. Make sure the DJC_HOME environment variable specifies the location of your EAServer installation, then running the build script or batch file. For example, if on Windows:

    set DJC_HOME=D:\Sybase\eas60
    cd %DJC_HOME%\samples\tutorial\java-corba
    build
    

    Or, if running UNIX with C shell:

    setenv DJC_HOME /opt/Sybase/eas60
    cd $DJC_HOME/samples/tutorial/java-corba
    build
    

    The build script or batch file runs the EAServer djc-ant command, which invokes Ant on the default build file, build.xml in the current directory.