ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Elliot <>
Subject RE: Compiling Ant on Linux...classic/modern javac not detected.
Date Tue, 12 Dec 2000 06:49:05 GMT
Hi Scott,

No, no Kaffe...I'm hoping to work it with a 
1.3.0 jvm (Blackdown or IBM).

Anyway, at present java -version reports:

Java(TM) 2 Runtime Environment, Standard Edition
(build Blackdown-1.3.0-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.0-FCS,
mixed mode)

My shell environment for the Ant build is:


The output from running is:

... Bootstrapping Ant Distribution
... Compiling Ant Classes
... Copying Required Files
... Building Ant Distribution
Searching for build.xml ...
Buildfile: /opt/jakarta-home/jakarta-ant/build.xml

   [delete] Deleting directory

    [mkdir] Created dir: /opt/jakarta-home/build/ant


    [mkdir] Created dir:
    [javac] Compiling 120 source files to


/opt/jakarta-home/jakarta-ant/build.xml:88: Cannot use
classic compiler, as it is not available

Total time: 5 seconds
... Cleaning Up Build Directories
... Done Bootstrapping Ant

It cannot find a classic compiler apparently...
I get the same error when trying Blackdown 1.3, 
1.2.2 or IBM 1.1.8.  I have also tried changing
build.compiler in build.xml to 'modern' rather 
than 'classic' which case the build reports:

    [javac] Compiling 120 source files to
    [javac] Modern compiler is not available - using
classic compiler


/opt/jakarta-home/jakarta-ant/build.xml:88: Cannot use
classic compiler, as it is not available

Is there any way to hardwire it so as to just
use the javac in the current path rather than
trying to do clever things ??

Many thanks for your help,

Dave Elliot

--- Scott Stirling <> wrote: >
There's nothing particularly special about Linux in
> this regard.  RedHat
> does install the Kaffe JVM and tools in /usr/bin,
> which you should make sure
> is not screwing you up.  If you do "java -version"
> and get back some kaffe
> version, then "rpm -e kaffe."  RedHat 7.0 installs
> jikes too.  I don't
> recall if it installs jikes in 6.2, but that
> shouldn't matter if you chose
> modern.
> Can you post the exact errors you're getting from
> the build process?
> Post the output of "set" too.
> Scott Stirling
> West Newton, MA
> -----Original Message-----
> From: David Elliot []
> Sent: Monday, December 11, 2000 1:43 AM
> To:
> Subject: Compiling Ant on Linux...classic/modern
> javac not detected.
> Hi all,
> Apologies if this is already discussed, as I can't
> find an archive of this list...
> Question:  When trying to build Ant on linux
> (RH 6.2) the build process complains that it can't
> find a classic compiler.  I have several jdks and
> have now tried them all.  I have also tried setting
> the compiler property to "modern" in build.xml, no
> joy.  My classpath, path, java_home all look
> correct, does anybody know what magic needs to be
> woven for Ant to recognise a linux java compiler as
> either modern or classic ??  If it would just simply
> use the javac in my path (blackdown 1.3) I would be
> ecstatic.
> p.s. Seems odd that Ant is lining itself up for
> a problem experienced by the arts community.  By
> defining v1.3 as modern, will we wind up dealing
> with compiler settings such as post-modern,
> very-modern, ultra-modern, still-got-its-price-tag,
> et all?
> Thanks for any tips,
> Dave Elliot

Do You Yahoo!?
Get your free address at
or your free address at

View raw message