How you install middlegen depends on how you get it. If you have downloaded a package distribution in a .zip or .tgz file it is just a matter of unpacking the archive to your hard drive.
If you have downloaded Middlegen from CVS, you'll have to build it first.
If you download Middlegen from CVS or if you have modified the sources
locally (fixing a bug perhaps?) you'll have to build Middlegen.
Building Middlegen from source is simple. Just make sure that you have
Ant 1.5 or later installed on your system and that your shell's
CLASSPATH environment variable is empty.
Open a shell and make sure you
are in the middlegen directory. Then execute:
middlegen> ant
That's it! You will now have several new jar files under middlegen/samples/lib. Please refer to Getting Started for further instructions.