At 03:19 PM 6/19/2001 +0100, Dylan J Browne wrote:
> > Thanks for the help so far....
> > Ok, I have jarred up the addressbook classes, and placed them in my
> > jre/lib/ext (i'm on windows2000)....
> >...
> >  I am still getting the same "class name could not be resolved" error. And
> > I've just noticed that in the admin tool I also get the following error
>when
> > I click on deploy or undeploy:  (A new error, I call this progress :)
>...
> > Root cause:
> > java.lang.NoClassDefFoundError: sun/tools/javac/Main
...
Ah-ha! Well, maybe. My partner/coauthor was getting this on his new windows2000 
machine, and the tools.jar (%JAVA_HOME%\lib\tools.jar, to be specific) was
definitely on the classpath and definitely contained the uncompressed string
"sun/tools/javac/Main" and presumably the corresponding compressed file since
javac worked just fine externally, and we found that copying that tools.jar
into %JAVA_HOME%\jre\lib\ext simply fixed that problem. (Without it, jsp files
didn't work at all, so we never got as far as testing SOAP until after this
perfectly absurd operation had been carried out. SOAP was okay.) Of course 
your mileage may vary. :-) Aren't classpaths fun? (Are they worse than "DLL 
hell?" Nah, I guess not.)

Tom Myers

Reply via email to