Contents Index Lesson 3: Write the application code Lesson 5: Add synchronization to your application pdf/preface.pdf

UltraLite User's Guide
  Tutorial: Build an Application Using Java

Lesson 4: Build and run the application


After you have created a source file Sample.java using the sample code in the previous section, you are ready to build your UltraLite application.

To build your application

  1. Start the Adaptive Server Anywhere personal database server.

    By starting the database server, the UltraLite generator has access to your reference database. Start the database server from the Start menu:

    Start > Programs > Sybase SQL Anywhere 9 > UltraLite > Personal Server Sample for UltraLite.

  2. Compile your Java source files.

    Include the following locations in your classpath:

    Use the javac function of the Java development kit as follows:

    javac *.java

You are now ready to run your application.

To run your application

  1. Go to a command prompt in the Javatutorial directory.

  2. Include the same classes in the classpath as in the earlier step.

  3. Enter the following command to run the application

    java Sample

    The list of two items is written out to the screen, and the application terminates.

You have now built and run your first UltraLite Java application. The next step is to add synchronization to the application.


Contents Index Lesson 3: Write the application code Lesson 5: Add synchronization to your application pdf/preface.pdf