ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Rzadkowolski <adam.rzadkowol...@axit.pl>
Subject RE: difficulty in bulding ant
Date Mon, 17 Feb 2003 15:51:22 GMT
At 07:42 2003-02-17 -0800, you wrote:

> > From: suraj waghulde [mailto:surajwaghulde@yahoo.com]
> > Sent: Friday, February 14, 2003 4:49 AM
>
> > C:\ant>build -Ddist.dir="c:\ant"
>
><SNIP/>
>
> > JAVA_HOME=c:\jdk1.3.0_01
> > JAVA=c:\jdk1.3.0_01\bin\java
> > JAVAC=c:\jdk1.3.0_01\bin\javac
>
><SNIP/>
>
> > Modern compiler not found - looking for classic
> > compiler
> >
> > BUILD FAILED
> > file:C:/ant/build.xml:571: Cannot use classic
> > compiler, as it is not available.
> >  A common solution is to set the environment variable
> > JAVA_HOME to your jdk dire
> > ctory.
>
>         My intuitive guess is that there is no C:\jdk1.3.1_01 
> directory.  Have you not upgraded since then?  I just ran the build on my 
> machine, and all was well.
>/|/|ike

set JAVA_HOME variable in your enviroment
in my case it is as follows:

in my setenv.bat file

set ANT_HOME=E:\Ant
set JAVA_HOME=C:\J2se

so i run command windows (on win2000) cmd.exe then i run setenv.bat
and then i run ant. 


Mime
View raw message