ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: Ant build problem URGENT!!!!!!
Date Fri, 20 Sep 2002 06:11:30 GMT
Naveen_JaiDayal wrote:
> Hello All

A couple of things to check. 

You said you were using Ant 1.5 but the message you show 

"Modern compiler is not available - using classic compiler"

comes from Ant 1.4.1. In Ant 1.5 it would say someting like

"Modern compiler not found - looking for classic compiler"

I'm not sure if the code changes in this area will affect your problem but it worth being
clear about the versions.

You could try running this build.xml file with -debug turned on

<project default="modern">
  <target name="modern">
    <typedef name="moderntest" classname="com.sun.tools.javac.Main"/>
    <moderntest/>
  </target>
  
  <target name="classic">
    <typedef name="classictest" classname="sun.tools.javac.Main"/>
    <classictest/>
  </target>
</project>  

If you try this with both 
   ant -debug modern
and
   ant -debug classic

it might give us some idea about what is going on. Note that the classic option will always
fail but the error message will change depending on whether the compiler is truly available.

Also, try clearing any java.exe  and javaw.exe you find in WINNT\System32

Conor




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message