I had the same problem, for some reason with 1.2.2, tools.jar is not in the
default classpath. I fixed it by adding JAVA_HOME/lib/tools.jar to my
classpath, but you could also just copy the jar file into
JAVA_HOME/jre/lib/ext, and it should be in the default J2 classpath.
-Lkb
At 11:22 AM 3/27/00 -0800, Robert Miller wrote:
>
> I'm about at my wit's end on this one. I admin a site that relies on jsp.
>I just upgraded my development area to jdk1.2.2rc4, ApacheJServ1.1 and kept
>gnujsp0.9. Almost everything works great; actually I've got much better
>performance than I had before.
>
> However, I have a team of developers working on a new project. The jsp's
>they developed worked under the old jdk1.1.7v3, but now they are broken. The
>error I get is:
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at org.gjt.jsp.JSPCompiler.compileJavaFile(JSPCompiler.java,
Compiled Code)
> at org.gjt.jsp.JSPCompiler.compile(JSPCompiler.java, Compiled Code)
> at org.gjt.jsp.JSPServlet.service(JSPServlet.java, Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
> at
org.apache.jserv.JServConnection.processRequest(JServConnection.java,
Compiled Code)
> at org.apache.jserv.JServConnection.run(JServConnection.java,
Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
>
>all my other jsp's can find javac no problem. I have updated
>/jdk/jre/lib/security/* as recommended in the faqOmatic, and i still get the
>same error.
>
> I NEED the performance boost I got with the upgrade; there's no way I'm
>going to roll it back. How can I get upgrade my config/codebase to work?
>
> These developers have been writing good code before... Is it an issue with
>my configuration? If so, where? If it's with their code, whereabouts should
>I look for the offending line(s)?
>
> Thank you all for your time!
>___________________________
>Robert Miller
>office: 206.770.6000 x208 | cell: 206.227.1231
>Unix Systems Administrator
>
>http://www.hometownfan.com -=+> Get It on the Net! <+=-
>http://www.ticketexchange.com -=+> 1st Place for Tickets! <+=-
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]