Tomcat is not finding your JAVA_HOME correctly. Check that you are
actually setting this in the shell before you start Tomcat. Also check that
this is really a JDK and not a JRE (you must have a JAVA_HOME\lib\tools.jar
file for Tomcat to work).
Randy
> -----Original Message-----
> From: mbe bem [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 19, 2001 4:16 AM
> To: [EMAIL PROTECTED]
> Subject: Subject: NoClassDefFoundError & ServletException
>
>
>
> Hi!
> My name is Mbe, I did download jakarta-tomcat-4.0.b3 and
> jakarta-servletapi-4.0.b3 and installed them in my nt4.0 workstation.
> I also installed jdk1.3 and set the variables and values as follows
> Variable : Values
> TOMCAT_HOME D:\jakarta-tomcat-4.0-b3
> JAVA_SERVLETAPI D:\jakarta-servletapi-4.0-b3
> JAVA_HOME D:\jdk1.3
>
> I was able to start tomcat with startup, but trying to run java
> programm Dabe (with execute) at localhost:8080/examples/jsp I get the
> following errors
> Exception Report:
> javax.servlet.ServletException: sun/tools/javac/Main
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:439)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> ....
>
> and
>
> Root Cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:128)
> at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:268)
> ....
>
> Am I missing anything?
> How do I go about it?
>
> Thanks in anticipation!
>
>
> Mbe
>
>