Checked everything you suggested to me. From the command prompt, the
Classpath it builds includes, among several other things,
c:\jdk\lib\tools.jar .
I verified that this is, indeed, where the tools.jar is located at.
I then went and found the examples of JSP pages that is provided with
Tomcat. Displaying web pages and servlets works just fine. However,
whenever I try and view a JSP page, I get the following error:
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
Any other suggestions?
> -----Original Message-----
> From: Randy Layman [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Error 500
>
>
> When you start Tomcat (from the command line) what is your
> classpath? Does tools.jar appear here? If so, then the problem isn't
> that
> tools.jar isn't being included (obviously) and you probably want to post
> your exact error message. If its not in the classpath, I would suggest
> looking at tomcat.bat/.sh and how it builds the classpath to determine
> which
> path of execution you are taking and why tools.jar is not included.
>
> Randy
>
>
> > -----Original Message-----
> > From: Maddux, Craig [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 06, 2001 2:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: Error 500
> >
> >
> > I've gotten what seems to be a rather common error, after
> > having reviewed
> > the mailing archives... but none of the solutions that seem
> > to work for
> > those
> > other people have solved my problem.
> >
> > For JSP pages, Tomcat can't find the sun/tools/javac/main.
> > This is, of
> > course,
> > located in the tools.jar. So far, this is what I've done:
> >
> > Specified JAVA_HOME to the root of my jdk (version 1.3,
> > though I have tried,
> > and
> > gotten similar results, with 1.2.2).
> >
> > Classpaths - I've put the necessary classpaths in. I've
> > moved all of the
> > tomcat/lib jars
> > over to the jdk classpath jre/lib/ext, as had been suggested
> > previously.
> > I've even gone
> > so far as to specificy, exactly, the tools.jar file (i.e.,
> > c:\jdk\lib\tools.jar)
> >
> > Path - I've included my jdk bin directory in the path, and
> > have access to
> > javac
> > from any directory.
> >
> > I've also tried reinstalling Tomcat, with a fresh download, and still
> > nothing worked. Any
> > suggestions as to what to try next?
> >