1 posts in topic
Flat View  Flat View

Posted By:   Ahmad_Rahmani
Posted On:   Thursday, November 1, 2001 11:09 AM

The numgess example of Tomcat 4.1 is working but others get the exception

of "javax.servlet.ServletException: sun/tools/javac/Main"
and ROOT CAUSE as "java.lang.NoClassDefFoundError: sun/tools/javac/Main",
the question is -- if classpath is not set correctly
then how come one jsp file and all servlets are working while other jsp
files in the same directory are not working?

Re: tomcat/jsp

Posted By:   AlessandroA_Garbagnati  
Posted On:   Monday, November 5, 2001 10:14 AM


Wacky! This behavior is strange, and the only reason I can see is that the numguess example has been already run at least once with the environment set correctly.

The message you are getting is because the tools.jar file (that is part of the JDK distribution) is not present. That file is used ONLY to compile the jsp pages the first time (or every time that they are modified). Servlets and jsp pages already compiled do not require it.

Check the correct setting of the JAVA_HOME environment variable.

About | Sitemap | Contact