Build

Portability
Environment
Building the Software
Using Maven 2

Portability

This database is written in Java and therefore works on many platforms. It is also possible to compile it to a native executable using GCJ.

Environment

To build the database executables, the following software stack was used. In most cases, newer version or compatible software works too, but this was not tested.
  • Windows XP
  • Sun JDK Version 1.4
  • Apache Ant Version 1.6.5
  • Mozilla Firefox 1.5
  • Eclipse Version 3.2.1
  • YourKit Java Profiler

Building the Software

On the command line, go to the directory src and execute the following command:
ant -projecthelp
You will get a list of targets. If you want to build the jar files, execute:
ant jar
To create a jar file with the JDBC API and the classes required to connect to a server only, use the target jarClient:
ant jarClient
The other targets may be used as well.

Using Maven 2

To build and upload the H2 .jar file to the local Maven 2 repository, execute the following command:
ant mavenUploadLocal
Afterwards, you can include the database in your Maven 2 project as a dependency:
<dependency>
    <groupId>org.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>