Thank you, Chris.

really  CLASSPATH should not be set. I am the one person using my PC.

I find out problem it occur because shortcut to tomcat refered to
other java.exe that JAVA_HOME watched. when I ran tomcat by
startup.bat all goes Ok.

On 4/17/06, Chris Smith <[EMAIL PROTECTED]> wrote:
> Alexandr Khlystov wrote:
> > Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> > Perhaps JAVA_HOME does not point to the JDK
>
> > but
> >
> > JAVA_HOME=C:\j2sdk1.4.2_04
> > CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib
>
> Those environment variables are set to those values in what context?  The
> one you use to start Tomcat?  Or just in some command shell somewhere?
>
> (Incidentally, you do not need to put jre/lib/rt.jar in the CLASSPATH.  In
> fact, you probably shouldn't set a CLASSPATH at all.)
>
> --
> www.designacourse.com
> The Easiest Way To Train Anyone... Anywhere.
>
> Chris Smith - Lead Software Developer/Technical Trainer
> MindIQ Corporation
>
>

Reply via email to