You need:
1.
Java 2 Standard Edition version 4- NOT J2EE - uninstall J2EE first
2. Tomcat 4
3. As I recall, on Win98 you have to increase the "environment" space because Tomcat sets lots of environment variables.
Don't try to compile your own servlets until you can run the Tomcat servlet and
JSP examples.
Read the servlet.xml and web.xml files to see how the examples directory is set up.
DON'T use the /servlet/ style URLs
Bill