hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Yang <garyya...@yahoo.com>
Subject Re: Compilation failed when compile hadoop common release-0.20.2
Date Mon, 08 Mar 2010 20:34:12 GMT
Hi Allen,

I did not find the java 1.5. However, I found jdk 5.01 EE edition. I think it is java1.5.
I downloaded and installed it. I got another compilation error. See below. Any idea?

java_ee_sdk-5_01-linux.bin  (the java I downloaded)

/tmp/jdk1.5/jdk/bin/java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)


ls /usr/forrest-0.8
bin/  build/  etc/  index.html  KEYS  lib/  LICENSE.txt  main/  NOTICE.txt  plugins/  README.txt
 site-author/  tools/  whiteboard/

ls /tmp/eclipse
about_files/  artifacts.xml   dropins/  eclipse.ini   features/  libcairo-swt.so*  p2/   
   readme/
about.html    configuration/  eclipse*  epl-v10.html  icon.xpm   notice.html       plugins/



My build scripts:

#!/bin/sh

export JAVA_HOME=/tmp/jdk1.5/jdk
export CFLAGS=-m32
export CXXFLAGS=-m32
ant -Dversion=0.20.2 -Dcompile.native=true -Dcompile.c++=true -Dlibhdfs=1 -Dlibrecordio=true
-Dxercescroot=/usr/xercesc -Declipse.home=/tmp/eclipse -Dforrest.home=/usr/forrest-0.8 -Djava5.home=/tmp/jdk1.5/jdk
clean api-report tar test test-c++-libhdfs



Error Messages:

    [touch] Creating /tmp/null568498220
   [delete] Deleting: /tmp/null568498220
     [copy] Copying 7 files to /tmp/hadoop-common-0.20.2/build/webapps

record-parser:

compile-rcc-compiler:
    [javac] Compiling 29 source files to /tmp/hadoop-common-0.20.2/build/classes
    [javac] javac: invalid target release: 1.6
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac]   -g                         Generate all debugging info
    [javac]   -g:none                    Generate no debugging info
    [javac]   -g:{lines,vars,source}     Generate only some debugging info
    [javac]   -nowarn                    Generate no warnings
    [javac]   -verbose                   Output messages about what the compiler is doing
    [javac]   -deprecation               Output source locations where deprecated APIs are
used
    [javac]   -classpath <path>          Specify where to find user class files
    [javac]   -cp <path>                 Specify where to find user class files
    [javac]   -sourcepath <path>         Specify where to find input source files
    [javac]   -bootclasspath <path>      Override location of bootstrap class files
    [javac]   -extdirs <dirs>            Override location of installed extensions
    [javac]   -endorseddirs <dirs>       Override location of endorsed standards path
    [javac]   -d <directory>             Specify where to place generated class files
    [javac]   -encoding <encoding>       Specify character encoding used by source files
    [javac]   -source <release>          Provide source compatibility with specified
release
    [javac]   -target <release>          Generate class files for specific VM version
    [javac]   -version                   Version information
    [javac]   -help                      Print a synopsis of standard options
    [javac]   -X                         Print a synopsis of nonstandard options
    [javac]   -J<flag>                   Pass <flag> directly to the runtime system
    [javac] 

BUILD FAILED
/tmp/hadoop-common-0.20.2/build.xml:316: Compile failed; see the compiler error output for
details.


I deleted my java 1.6. I do not understand why I got the error below.

    [javac] javac: invalid target release: 1.6
    [javac] Usage: javac <options> <source files>


Thanks,


Gary


--- On Mon, 3/8/10, Allen Wittenauer <awittenauer@linkedin.com> wrote:

> From: Allen Wittenauer <awittenauer@linkedin.com>
> Subject: Re: Compilation failed when compile hadoop common release-0.20.2
> To: general@hadoop.apache.org
> Date: Monday, March 8, 2010, 10:30 AM
> 
> 
> 
> On 3/8/10 10:06 AM, "Gary Yang" <garyyang6@yahoo.com>
> wrote:
> 
> > Hi Owen,
> > 
> > Thanks for the reply. From the link you provided, I
> found the build
> > instruction. I do not understand the option,
> "-Djava5.home=/usr/local/jdk1.5".
> > Does it mean I have to use JDK 1.5? I read somewhere
> it suggested to use JDK
> > 1.6. 
> 
> JDK 1.5 is required to build the documentation. 
> JDK1.6 is used everywhere
> else. So it uses the java5.home setting to kick off forrest
> without
> upsetting the JAVA_HOME env var.
> 
> 
> 


      

Mime
View raw message