[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

compile time error!!


I wrote a JSP page and it runs well.
After I install JDK1.2, it won't run.

The error message as:

=========
500 Internal Server Error
jsp:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
=========

It's a compile time error. 

I tried to check everywhere in the system configuration and found
nothing is wrong! I check the source of nl.nmg.jsp.JSPCompiler.java and
found it is using sun.tools.javac.Main class. I can't find this class
anywhere in my system. Then I recall that in order to install JDK1.2 and
clean up others, one thing I have done is that I uninstall the JWS which
I installed long time ago, never use it, and might be expired. 

Is that right I shouldn't delete the JWS? 

Why GNUJSP using the sun.tools.javac.Main.compile() to perform the
compilation? Why not calling compiler directly?

What should I do? (Reinstall JWS?)

- Mike -