Hi,

I encountered the same problem when I run startserver.bat first time. But
after I insert a line, it works well.
You may forgot the "classes.zip". and the line is "SET
CLASSPATH=D:\JDK12\lib\tools.jar;D:\JDK12\lib\classes.zip;". But I noticed
that there is no file "classes.zip" in directory "lib".

Hope this can help.

Jianhong


----- Original Message -----
From: Christopher BROWN <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 23, 1999 4:50 PM
Subject: Trying JSWDK server (1.0final) on WinNT: annoying set-up again


> Hi,
>
> This seems to be quite a common query on the list, so I've looked at
> previous replies already; I've still got the same problem however.  This
> also occured when I tried JSWDK 1.0ea, but after 2 days, the problem
> mysteriously disappeared...
>
> Basically, running startserver.bat lets me go to http://localhost:8080 no
> problem; I can link to the docs, run the servlet examples, but I can't run
> the JSP examples.  The MS-DOS console which appears when running
> startserver.bat shows the following message (I suspect some of the message
> scrolled unhelpfully off-screen..):
> ----------------------------------------
>         sun.tools.javac.Main
>
> Quite often this warning is a result of not including the
> necessary packages in the CLASSPATH environment which was
> used to invoke com.sun.web.shell.Startup. This can be corrected
> by adding the following to your CLASSPATH environment variable
> and restarting JSWDK:
>
>         for jdk 1.2.x on unix:
>         % CLASSPATH=[jdkHome]/lib/tools.jar:$CLASSPATH; export CLASSPATH
>
>         for jdk 2.1.x on windows:
>         % CLASSPATH=[jdkHome]\lib\tools.jar;%CLASSPATH%
>
>         for jdk 1.1.x on unix:
>         % CLASSPATH=[jdkHome]/lib/classes.zip:$CLASSPATH; export CLASSPATH
>
>         for jdk 1.1.x on windows:
>         % CLASSPATH=[jdkHome]\lib\classes.zip;%CLASSPATH%
>
>         where [jdkHome] represents the location of your jdk
>         installation directory
> endpoint created: localhost/127.0.0.1:8080
> ----------------------------------------
>
> ...and then when trying to access a JSP page:
>
> ----------------------------------------
> com.sun.jsp.runtime.JspServlet: init
> Scratch dir for the JSP engine is: work\%3A8080%2Fexamples
> IMPORTANT: Do not modify the generated servlets
> 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:269)
>         at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:135)
>         at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServ
> let.java:77)
>         at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java
> :87)
>         at
> com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
>         at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
>         at
> com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
>         at com.sun.web.core.Context.handleRequest(Context.java:414)
>         at
> com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
> ----------------------------------------
>
> I've got the following lines in autoexec.bat, unchanged since I ran
> JSWDK1.0ea:
>
> ----------------------------------------
> set
> CLASSPATH=C:\java\jdk1.2.2\lib\tools.jar;C:\java\jaf-1.0.1\activation.ja
> r;C:\java\javamail-1.1.2\mail.jar;C:\classes
> set JAVA_HOME=C:\java\jdk1.2.2
> ----------------------------------------
>
> Can anyone show me how to get it working and explain what obvious thing
I'm
> missing?
>
> Many thanks,
> Chris Brown
> Webnet
> http://www.webnet.fr
>
>
===========================================================================
> 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".
> For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
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".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to