Hi all,
 
Basically i have developed a small application using JSP, Tomcat 4.0.3,
j2sdk1.4.0 under win2k. It was working absolutely fine. The same
application when i'm trying to run on windows 98, it is giving the
following error:
 
Note: I'm not copying whole output. These are the few lines of code to
give basic idea.
exception 
javax.servlet.ServletException: sun/tools/javac/Main
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 
root cause 
        java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:1
36)

I set the PATH and CLASSPATH variables as follows in autoexec.bat:

PATH=%PATH%;c:\j2sdk1.4.0\bin;
JAVA_HOME=c:\j2sdk1.4.0
CATALINA_HOME=c:\Program Files\Apache Group\Apache Tomcat 4.0
TOMCAT_HOME=%CATALINA_HOME

%CLASSPATH=%CLASSPATH%;c:\j2sdk1.4.0\jre\lib\tools.jar;c:\Program
Files\Apache Group\Apache 
Tomcat 4.0\common\lib\servlet.jar

I'm just wondering that whether i should include servlet.jar in the
CLASSPATH or any other place.

What i feel is for some reason tomcat is not loading servlet.jar. 
Please someone assist me in this regard.

Thanks in advance
Rajasree

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to