UltraLite Static Java User's Guide
Data Access Using Pure Java
The UltraLite Java sample application
This section describes how to build the UltraLite Java sample application for the Sun Java 1 or 2 environment.
To build the UltraLite Java sample
Ensure you have the right JDK.
You must have JDK 1.1 or JDK 1.3 to build the sample application, and the JDK tools must be in your path.
Open a command prompt.
Change to the Samples\UltraLite\CustDB\java\java13 subdirectory of your SQL Anywhere directory, or the java11 directory if you are using Java 1.
Build the sample:
Set the JAVA_HOME environment variable. For example:
SET JAVA_HOME=c:\jdk1.3.1
From the command prompt, enter the following command:
build
The build procedure carries out the following operations:
Loads the SQL statements into the UltraLite sample database.
This step uses Interactive SQL, the SQL.sql file, and relies on the UltraLite 9.0 Sample data source.
Generates the Java database class custdb.Database.
This step uses the UltraLite generator and the UltraLite 9.0 Sample data source.
Compiles the Java files.
This step uses the JDK compiler (javac) and jar utility.