Build

Portability
Environment
Building the Software
Using Maven 2

Portability

This database is written in Java and therefore works on many platforms. It can also be compiled 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.

  • Windows XP
  • Sun JDK Version 1.4 or 1.5
  • Apache Ant Version 1.6.5
  • Mozilla Firefox 1.5
  • Eclipse Version 3.2.2
  • 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

Using a Central Repository

You can include the database in your Maven 2 project as a dependency. Example:

<dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>1.0.58</version>
</dependency>

Using Snapshot Version

To build a 'snapshot' H2 .jar file and upload it the to the local Maven 2 repository, execute the following command:

ant mavenInstallLocal
Afterwards, you can include the database in your Maven 2 project as a dependency:
<dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>