Get the Java CGI package from
ftp://ftp.orbits.com/pub/software/java_cgi-0.5.tgz.
(The version number may have changed.)
Unpack the distribution with this command:
gzip -dc java_cgi-0.5.tgz | tar -xvf -
(If the version number has changed, use the instructions from within
that distribution from this point on.)
Edit the Makefile you will find in the newly created directory
java_cgi-0.5 as appropriate to your system.
As root, run make install.
This will compile the Java programs, apply your system-specific information
and install the various files.
If you want the HTML version of this documentation and an HTML test document,
run make all instead.