I had this kind of problem recently, and found the easy way to
configure my system :
The JSDK 1.2 has a built in 'extension' mechanism which you
can use to compile and run with any classes you wish to have available for any
project. Simple add the extensions (ie servlet.jar, jasper.jar etc ) to
the "jsdk1.2/jre/lib/ext" directory. Ensure you have JAVA_HOME
environmental variable set to the jsdk 1.2 directory, and that the jsdk1.2/bin
directory is in your PATH. Finally make sure there is
no CLASSPATH set, as this just serves to stuff things up.
I am using Tomcat with JDSK 1.2 - and it is working with both
Windows98 and Caldera Linux.
Short note re Caldera Linux : I believe Kaffe is supplied as
default with Caldera Linux. The java and javac commands are in the usr/bin
directory, in effect stuffing any attempt to add paths to new versions of
Java. I had to delete kaffe, including all the java programs in /usr/bin
before I got Java 1.2 working.
This will probably however stuff the current version of JServ
if you have it installed first (as I did) so you will need to run tomcat
instead. I have spent several weeks on a rather steep learning curve on
Linux/Java/Servlets/JDBC. I am now writing Java Servlets which access my
account system interbase database.
----- Original Message -----
Sent: Monday, March 20, 2000 6:52
Subject: NoClassDefFoundError when
I can run the servlet examples via
Tomcat. However, each time I attempt to access a JSP, I get an HTTP 500
Internal server error on the client web browser.
The Tomcat window in NT
Starting tomcat. Check
logs/tomcat.log for error messages
Unhandled error! You might want to
consider having an error page to report such
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
This seems to indicate that I am
missing a Java class or JAR.
I do have J2EE installed over the J2SE. Any idea what I am