Alexey Varlamov said the following on 11.01.2008 14:21:
11 Jan 2008 10:31:43 +0300, Egor Pasko <[EMAIL PROTECTED]>:
On the 0x3C8 day of Apache Harmony Aram Mirzadeh wrote:
I am trying to build harmony on CentOS 5.1 system, any suggestions
would be greatly appreciated
Apache Ant version 1.6.5 compiled on January 6 2007
Linux 2.6.18-8.1.15.el5
java version "1.6.0_03"
try with java 1.5
Egor, I don't think this will help, unfortunately.
# echo $ANT_OPTS
-Xms256m -Xmx512m
# ant -Dauto.fetch=true
show_props:
[echo]
[echo] Apache Harmony Federated Build
[echo] ==========================================
[echo] svn rev : 607500
[echo] operating system : linux
[echo] architecture : x86-32
[echo] ant os name/arch : Linux/i386
[echo] hosting Java : 1.6.0_03 (Sun Microsystems Inc.)
[echo] build mode : release
[echo] output location : target
[echo] DRLVM classlib : ../../../working_classlib
[echo] SVN root : http://svn.apache.org/repos/asf
[echo] [ ... ]
-compile:
BUILD FAILED
/home/awm/harmony/trunk/build.xml:323: The following error occurred
while executing this line:
/home/awm/harmony/trunk/working_classlib/build.xml:113: The following
error occurred while executing this line:
/home/awm/harmony/trunk/working_classlib/make/build-java.xml:116: The
following error occurred while executing this line:
/home/awm/harmony/trunk/working_classlib/make/properties.xml:546: The
Eclipse compiler class for Ant could not be found. Please place the
ECJ JAR in ANT_HOME/lib.
The JAR can be downloaded directly from eclipse.org or copied from
COMMON_RESOURCES/depends/jars/ecj_3.x folder after the fetch-depends
target for JDKTOOLS has been run.
Alternatively, you can switch to another compiler, e.g. specify
'-Dhy.javac.compiler=modern' for classic javac.
Total time: 1 minute 7 seconds
Although I do have ecj installed, but ok
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant
ecj.jar (3991124 bytes)
I recall having similar problems on SLES10 with pre-installed ANT. I
could not make it work, all tricks like passing --noconfig or setting
ANT_LIB did not help.
I finished un-installing that ANT and working with local setup w/o any problem.
In such cases running $ANT_HOME/bin/ant instead of ant helped me.
--
Gregory