Windows users should get the self-installing .exe distribution from http://java.apache.org/.
Download the gzipped tar file from http://java.apache.org/, and unpack it in a suitable place — we put it in /usr/src/mod_jserv.
The READMEfile says:
Apache JServ is a 100% pure Java servlet engine designed to implement the Sun Java Servlet API 2.0 specifications and add Java Servlet capabilities to the Apache HTTP Server.
For this installation to work, you must have:
But not Apache v2, which does not support mod_jserv.
We decided to install the full Java Development Kit (which we needed anyway for Tomcat — see later on). We went to the FreeBSD site and downloaded the 1.1.8 JDK from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/JDK1.1/jdk1.1.8_ELF.V1999-11-9.tar.gz.
If you are adventurous, 1.2 is available from http://www.freebsd.org/java/dists/12.html. When you have it, see Section 18.2.1 for what to do next. If you are using a different operating system from any of those mentioned, you will have to find the necessary package for yourself.
A range of versions is available at
http://java.sun.com/products/servlet/download.html.
As is usual with anything to do with Java, a certain amount of
confusion is evident. The words “Java Servlet
Development Kit” or
“JSDK” are hard to find on this
page, and when found they seem to refer to the very oldest versions
rather than the newer ones that are called “Java
Servlet.” However, we felt that older is probably
better in the fast-moving but erratic world of Java, and we
downloaded v2.0 from
http://java.sun.com/products/servlet/archive.html.
This offered both Windows and “Unix (Solaris and
others)” code, with the reassuring note:
“The Unix download is labeled as being for Solaris
but contains no Solaris specific code.” The tar file
arrived with a .Z extension, signifying that it
needs to be expanded with the Unix utility
uncompress
. There is a FreeBSD JSDK available
atftp://ftp.FreeBSD.org/pub/FreeBSD/branches/-current/ports/java/jsdk.tar.
If you downloaded the Runtime Environment listed earlier, rather than the JDK, you will also need a compiler — either Sun’s Javac (see web site listed earlier) or the faster Jikes compiler from IBM at http://www.alphaworks.ibm.com/tech/jikes.
If you have already downloaded the Apache source and compiled it
successfully, you must have this component. But there is a hidden
joke in that mod_jserv will not be happy with
any old make
utility. It must and will have a GNU
make
from ftp://ftp.gnu.org/gnu/make/. See the next
section.