Hi,
Modify the startserver.bat. You have to tell it where the location of your
tools.jar file is.
If you are using jdk1.2.1 then here is an example:
(this example is for NT , the same idea applies to unix)
====================================================
if "%CLASSPATH%" == "" goto noclasspath
rem else
set _CLASSPATH=%CLASSPATH%
set
CLASSPATH=server.jar;servlet.jar;classes;examples\WEB-INF\jsp\beans;c:\jdk1.2.1\lib\tools.jar;%CLASSPATH%
goto next
:noclasspath
set _CLASSPATH=
set
CLASSPATH=server.jar;servlet.jar;examples\WEB-INF\jsp\beans;classes;c:\jdk1.2.1\tools.jar
goto next
======================================================
Now, a tutorial can be found at:
http://www.esperanto.org.nz/jspbook/ ( this is a pdf file)
Victor Munoz
Telcordia Technologies
-----------------------------------------------------------------------------
Matthew Davis wrote:
> Greetings,
>
> I thought this was a case of not having my path settings correct but that
> did not solve my problem. All I am attempting to do is run the JSP Examples
> in the web documentation. Could someone please shed some light on this for
> me...
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>
> at com.sun.jsp.compiler.Main.compile(Main.java:194)
>
> 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(Compiled Code)
>
> Thanks in advance,
> Matthew M. Davis.
>
> ===========================================================================
> 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".