Installation and Setup

With that discussion behind us, you are ready to install and set up Zeus. Go to the Zeus web site at http://zeus.sourceforge.net. You can choose to download a Zeus binary distribution or pull the Zeus code directly from CVS. If you are familiar with CVS, you are encouraged to use it; it assures that you obtain the very latest code available.

Once you have grabbed the code, you will need to build the source (unless you downloaded a binary release). Simply use the provided Ant scripts[13] and run build.sh or build.bat.

You will end up with a zeus.jar archive in the build/ directory, which is what you get from a binary release download. You should also note that xerces.jar and dtdparser114.jar are in the lib/ directories of the Zeus hierarchy. You should include all three of these entries in your classpath, as they are all needed for compile-time tasks:

C:\dev\Zeus> set CLASSPATH=c:\dev\Zeus\lib\xerces.jar;
    c:\dev\Zeus\lib\dtdparser114.jar;c:\dev\Zeus\build\zeus.jar

Or on Unix:

/dev (bmclaugh) $ CLASSPATH=/dev/Zeus/lib/xerces.jar: \
    /dev/Zeus/lib/dtdparser114.jar:/dev/Zeus/build/zeus.jar

With your classpath set, you are ready to go.

[13] Zeus actually comes with an implementation of Ant in ant.jar, so you will not need to install Ant separately on your development machine.

Get Java & XML Data Binding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.