hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Yang <garyya...@yahoo.com>
Subject Compilation failed when compile hadoop common release-0.20.2
Date Fri, 05 Mar 2010 23:47:58 GMT
Hi,

I try to compile hadoop common of the release 0.20.2. Below are the error messages and java
and ant versions I am using. Please tell me what I missed.

......

  [javadoc] Standard Doclet version 1.6.0_18
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...

java5.check:

BUILD FAILED
/hadoop_src/common/build.xml:908: 'java5.home' is not defined.  Forrest requires Java 5. 
Please pass -Djava5.home=<base of Java 5 distribution> to Ant on the command-line.


echo $JAVA_HOME
/usr/java/latest

which java
/usr/java/latest/bin/java

/usr/java/latest/bin/java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)

ant -version
Apache Ant version 1.7.1 compiled on June 27 2008


Thanks,


Gary





      

Mime
View raw message