Contents Index Generating UltraLite Java classes Deploying Java applications

UltraLite Static Java User's Guide
  Data Access Using Pure Java
    Building UltraLite Java applications

Compiling UltraLite Java applications


To compile the generated file

  1. Set your classpath

    When you compile your UltraLite Java application, the Java compiler must have access to the following classes:

    The following classpath gives access to these classes.

    %JAVA_HOME%\jre\lib\rt.jar;%ASANY8%\ultralite\java\lib\ulrt.jar;.

    where JAVA_HOME represents your Java installation directory, and ASANY8 represents your SQL Anywhere installation directory.

    For JDK 1.1 development, ulrt.jar is in a jdk11\lib subdirectory of the UltraLite\java directory.

  2. Compile the classes.

    With the classpath set as in step one, use javac and enter the following command (on a single line):

    javac file.java

    The compiler creates the class files for file.java.

The compilation step produces a number of class files. You must include all the generated .class files in your deployment.


Contents Index Generating UltraLite Java classes Deploying Java applications