hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Compilation failed when compile hadoop common release-0.20.2
Date Sat, 06 Mar 2010 00:17:19 GMT
Did you first try 'ant jar' from under /hadoop_src ?

On Fri, Mar 5, 2010 at 3:47 PM, Gary Yang <garyyang6@yahoo.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message