Chapter 3. Compiling the Hive Distribution

Hive is fairly straightforward to compile. We develop Hive in Linux using standard shell tools.

The hardest part of building Hive is setting up your CLASSPATH correctly. It is important that the Hive sources be in your CLASSPATH, as well as the final destination where thing are being compiled. It is much better not to compile the .class files in the same directory as the sources.

To compile Hive, you will need several tools.

Download the hive sources. They come in two packages, hivebase and hiveapps. Unpack them: they will create two directories, base and apps. Put those directories in your CLASSPATH.

Special notes for Windows

We do not use any fancy IDE for Hive. It is possible to compile Hive in Windows by installing just a few programs. Note: Hive doesn't work very well in Windows 95, we recommend Windows NT for robust networking. Or Linux!