Example: Creating a database

This example demonstrates how to create a file system database store in a Java SE Java environment. The Configuration object is used to create the database. Once created, a Connection object is returned. To create tables, the schemaUpdateBegin method is invoked to start changes to the underlying schema and the schemaUpdateComplete method completes changing the schema.

 To run the CreateDb.java example
  1. Change to the following directory: samples-dir\UltraLiteJ.

    For information about the default location of samples-dir, see Samples directory.

  2. Run the CreateDb example:

    rundemo CreateDb

Use the following command to run this example (the command is case sensitive):

rundemo CreateDb
 Notes