Go AVDN
Lesson: Compiling Persistence Applications
Compiling Persistence Applications

TOB implements a JSR 269 compliant annotation processor to be plugged into a standard Java compiler. It can be seamlessly integrated into standard Java compilation processes, just by putting jar files on the classpath for compilation.

In the following sections, we shall go over steps compiling example classes of this tutorial, using various Java development tools.

Preparation

You need JDK 6.0 or later installed, as well as the example source files on local disk to compile them. If you want to exercise the compilation with Apache Ant or Eclipse, you'll also need their proper versions installed.

Using JDK javac

Every SUN JDK are shipped with the JAVAC command line tool. It's the most available one, but needs manual launching, as well as various command line options.

Using Apache Ant

Apache Ant ( http://ant.apache.org ) is meant for automatic building of Java programs, you can write the build scripts (build.xml) once for your projects and simply invoke Ant to do everything automatically.

Using Eclipse SDK

Eclipse SDK ( http://www.eclipse.org ) is a cross-platform and rather comprehensive IDE (Integrated Development Environment) mainly for Java. It has integrated Ant script supports.