Here is what I have my environment variables set too.

SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\tomcat

SET
CLASSPATH=C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\jre\lib;C:\jdk1.2.2\bin;C:\tomcat\lib;C:\tomcat\classes;

But I am still getting the following message when I try to access the JSP
examples:

> > Error: 500
> > Location: /examples/jsp/num/numguess.jsp
> > sun/tools/javac/Main

I am getting this error in the tomcat startup window:

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.Compiler(Compiler.java, Compiled Code).....

The servlet examples work fine.

Any help is appreciated
tj


>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Tomcat and JSP
>Date: Tue, 2 May 2000 12:26:09 -0700
>
>tj kay wrote:
>
> > I have Tomcat and Apache running on my 98 machine. I can access the
>example
> > servlets that come with Tomcat, BUT I recieve the following error when I
>try
> > the example JSPs.
> >
> > Error: 500
> > Location: /examples/jsp/num/numguess.jsp
> > sun/tools/javac/Main
> >
>
>You need the Java compiler in your classpath in order to run JSP pages.
>You need
>to do one of the following:
>
>* Define a JAVA_HOME environment variable that points
>   at the base directory of your JDK 1.2.2 installation, or
>
>* Add the "lib\tools.jar" file underneath the Java home directory
>   to your CLASSPATH environment variable.
>
>Craig McClanahan
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to