I rechecked everything.
I did 

cd %java_home%
cd %ant_home%

to verify that those variables are set correctly.

I tried "javac", "ant build.xml" and they worked.
except for that it could not find the JDK.



On 27 Nov 2002 at 20:50, Jacob Kjome wrote:

> 
> Did you put JAVA_HOME\bin in the system PATH?
> 
> You shouldn't need to set your CLASSPATH at all.  Here are my settings:
> 
> JAVA_HOME = C:\j2sdk1.4.1_01
> ANT_HOME  =  C:\Java\Apache\Jakarta\ant-1.5.1
> 
> PATH = %JAVA_HOME%\bin;%ANT_HOME%\bin;[other stuff previously written here]
> 
> Now open a new command prompt and everything should work.
> 
> Jake
> 
> At 01:53 AM 11/27/2002 -0800, you wrote:
> >Are you saying I should explicitly put rt.jar in the classpath?
> >
> >On 26 Nov 2002 at 3:49, PREMKUMAR, N [AG/8042] wrote:
> >
> > > check if rt.jar is in path..
> > > also ensure that microsoft jre is not being used... [use "java -version" to
> > > find that out] .. if so comment that..
> > >
> > > Prem
> > >
> > > -----Original Message-----
> > > From: Peter Lee [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, 26 November 2002 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Ant cannot find a javac compiler
> > >
> > >
> > >
> > > I got the following message complaining that it cannot find JDK. But it was
> > > working before
> > > and all the necessary paths and environment variables have been set
> > > properly.
> > > ANT_home and JAVA_HOME are not altered in any way as before, but now  it
> > > does not work.
> > > What's the problem with it?
> > >
> > >
> > > prepare:
> > >
> > > compile:
> > >     [javac] Compiling 3 source files to c:\classes
> > >
> > > BUILD FAILED
> > > file: build.xml:33: 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
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to