ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Elliot <jsp...@yahoo.co.uk>
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:

-----
BASH=/bin/bash
BASH_VERSION=1.14.7(1)
CLASSPATH=
JAKARTA_HOME=/opt/jakarta-home
JAVA_HOME=/usr/local/jdk1.3
LANG=en_US
PATH=/opt/jakarta-home/jakarta-ant/bin/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/X11R6/bin:/usr/local/jdk1.3/bin
-----

The output from running bootstrap.sh 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

clean:
   [delete] Deleting directory
/opt/jakarta-home/build/ant

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

check_for_optional_packages:

compile:
    [mkdir] Created dir:
/opt/jakarta-home/build/ant/classes
    [javac] Compiling 120 source files to
/opt/jakarta-home/build/ant/classes

BUILD FAILED

/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'...in which case the build reports:

-----
    [javac] Compiling 120 source files to
/opt/jakarta-home/build/ant/classes
    [javac] Modern compiler is not available - using
classic compiler

BUILD FAILED

/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 <sstirling@mediaone.net> 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 [mailto:jspboy@yahoo.co.uk]
> Sent: Monday, December 11, 2000 1:43 AM
> To: ant-user@jakarta.apache.org
> 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 @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Mime
View raw message