Jason Cooner wrote:

> I downloaded the JSP early access v. 1.0 today and get the following error
> whenever I try to run one of the
> example jsp pages with the JSDK Web Server that comes with the release.  I
> know my env. classpath is correct,
> and all of the servlet examples work.  The numguess jsp example is writing
> out the java code just fine, but
> then the error gets thrown.  I know that the error is because the jsp
> compiler can't find a class, but how
> do you fix it?  I am getting the same error with Netscape 4.5 and IE 4.01.
> Any help would be appreciated.
>

What JVM are you running with?  Under a Java2 JVM, you need to explicitly include
the lib/tools.jar file on your class path, because that's where the compiler is.
For 1.1, you need to be using a JDK release, not a JRE release -- JRE does not
include the compiler.

Without more details, it's impossible to guess any closer than that.

Craig McClanahan


>
> Unhandled error! You might want to consider having an error page to report
> such errors more gracefully
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>         at com.sun.jsp.compiler.Main.compile(Main.java:196)
>         at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114)
>         at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.
> java:69)
>         at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)
>         at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)
>         at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
>         at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
>         at com.sun.web.core.Context.handleRequest(Context.java:382)
>         at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:135)
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to