You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dan MacKay <da...@kingston.hummingbird.com> on 2000/11/01 14:24:56 UTC

Can't find compiler error

Hi all,

I am sorry to pester you again. I think I have seen this question posted
here before but here we go again. I have ant working fine on the machine
that I have been prototyping build on. You know the drill - everything is
compiling and jar'ing and JUnit is running the correct test suites when it
is supposed to - So I thought that it would be a good time to show the boss
how easy it is to set up and use and move it over to a production machine.
Everything went fine, setting up the machine took about 15 mins, until I
went to build and I got this error that I have not seen before.

compile:
    [javac] Compiling 33 source files to E:\src\tmp\classes
    [javac] Modern compiler is not available - using classic compiler

BUILD FAILED

E:\src\tmp\DalBuild.xml:72: Cannot use classic compiler, as it is not
available

Total time: 5 seconds
E:\src\tmp>

I am using ant 1.2 and JDK1.3.0-C on both machines.

Any taker? Thanks

Dan


Re: Can't find compiler error

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "DM" == Dan MacKay <da...@kingston.hummingbird.com> writes:

 DM> [javac] Modern compiler is not available - using classic compiler

 DM> BUILD FAILED

 DM> E:\src\tmp\DalBuild.xml:72: Cannot use classic compiler, as it is
 DM> not available

This usually means tools.jar is not in your CLASSPATH. The wrapper
scripts for Ant are supposed to make this happen automatically if your
JAVA_HOME environment variable has been set correctly.

Stefan

RE: Can't find compiler error

Posted by ja...@livemedia.com.
Try comparing the exec paths on both systems.


james@livemedia.com

-----Original Message-----
From: Dan MacKay [mailto:dan.mackay@kingston.hummingbird.com]
Sent: Wednesday, November 01, 2000 5:25 AM
To: ant-user@jakarta.apache.org
Subject: Can't find compiler error


Hi all,

I am sorry to pester you again. I think I have seen this question posted
here before but here we go again. I have ant working fine on the machine
that I have been prototyping build on. You know the drill - everything is
compiling and jar'ing and JUnit is running the correct test suites when it
is supposed to - So I thought that it would be a good time to show the boss
how easy it is to set up and use and move it over to a production machine.
Everything went fine, setting up the machine took about 15 mins, until I
went to build and I got this error that I have not seen before.

compile:
    [javac] Compiling 33 source files to E:\src\tmp\classes
    [javac] Modern compiler is not available - using classic compiler

BUILD FAILED

E:\src\tmp\DalBuild.xml:72: Cannot use classic compiler, as it is not
available

Total time: 5 seconds
E:\src\tmp>

I am using ant 1.2 and JDK1.3.0-C on both machines.

Any taker? Thanks

Dan