You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/09/19 22:12:33 UTC
DO NOT REPLY [Bug 3729] New: -
sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3729>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3729
sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000
Summary: sun/tools/javac/Main not found while running Tomcat 4 as
a service on Windows 2000
Product: Tomcat 4
Version: 4.0 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: beem_r@crane.navy.mil
I'm having the following problem only on Windows 2000 with Sun's JDK 1.4. It
works with Windows NT 4.0 and Sun's JDK 1.3.1.
My JAVA_HOME and CATALINA_HOME environment variables are properly set.
While running Tomcat 4 as a service on Windows 2000 I get the following error
when accessing any JSP page that isn't already compiled:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
I believe sun.tools.javac.Main is called while the JSP page is compiled, and is
containted in C:\jdk1.4\lib\tools.jar.
For testing, delete all the files and folders in the "Apache Tomcat 4.0\work"
directory to force a recompile of the JSP pages.
When I run Tomcat 4 from the command line with startup.bat it tells me that
C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile and
work as expected. If I start Tomcat 4 as a service it doesn't seem to be using
the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.