incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand L Ranganathan <>
Subject Native java headers not found for hadoop -error while building
Date Fri, 09 Dec 2011 19:25:08 GMT
I am getting following error when I build  "sudo make hadoop-apt" .
I set the JAVA_HOME path correctly and couldn't figureout why it is
throwing this exception.

      [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... no
     [exec] checking for ANSI C header files... (cached) yes
     [exec] checking stdio.h usability... yes
     [exec] checking stdio.h presence... yes
     [exec] checking for stdio.h... yes
     [exec] checking stddef.h usability... yes
     [exec] checking stddef.h presence... yes
     [exec] checking for stddef.h... yes
line 20185: test: !=: unary operator expected
     [exec] checking jni.h usability... no
     [exec] checking jni.h presence... no
     [exec] checking for jni.h... no
     [exec] configure: error: Native java headers not found. Is $JAVA_HOME
set correctly?

My JAVA_HOME  is set to /usr/lib/jvm/java-6-sun

I tried to find the correct java installation on my machine  using  "*apt-file
search jni.h*" . It resulted other java paths than sun java .

 apt-file search jni.h
classpath-common: /usr/include/classpath/jni.h
gcc-snapshot: /usr/lib/jvm/java-1.5.0-gcj-4.5-snap/include/jni.h
gcj-4.4-jdk: /usr/lib/gcc/x86_64-linux-gnu/4.4/include/jni.h
gcj-4.4-jdk: /usr/lib/jvm/java-1.5.0-gcj-4.4/include/jni.h
kompozer-dev: /usr/include/kompozer/java/jni.h
kompozer-dev: /usr/include/kompozer/jni.h
libgcj9-dev: /usr/lib/gcc/x86_64-linux-gnu/4.3/include/jni.h
openjdk-6-jdk: /usr/lib/jvm/java-6-openjdk/include/jni.h
thunderbird-dev: /usr/include/thunderbird-3.0.4/stable/jni.h
thunderbird-dev: /usr/include/thunderbird-3.0.4/unstable/jni.h


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message