O'Reilly logo

Java & XML Data Binding by Brett McLaughlin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required