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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>