[
https://issues.apache.org/jira/browse/HADOOP-9435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tian Hong Wang updated HADOOP-9435:
-----------------------------------
Description:
When native build hadoop-common-project with IBM java using command like:
mvn package -Pnative
it will exist the following errors.
[exec] -- Configuring incomplete, errors occurred!
[exec] JAVA_HOME=,
JAVA_JVM_LIBRARY=/home/louis/ibm-java-i386-60/jre/lib/i386/classic/libjvm.so
[exec] JAVA_INCLUDE_PATH=/home/louis/ibm-java-i386-60/include,
JAVA_INCLUDE_PATH2=JAVA_INCLUDE_PATH2-NOTFOUND
[exec] CMake Error at JNIFlags.cmake:113 (MESSAGE):
[exec] Failed to find a viable JVM installation under JAVA_HOME.
[exec] Call Stack (most recent call first):
[exec] CMakeLists.txt:24 (include)
The reason is that IBM java uses $JAVA_HOME/include/jniport.h instead of
$JAVA_HOME/include/jni_md.h in Oracle java.
was:
When native build hadoop-common-project with IBM java using command like:
mvn package -Pnative
it will exist the following errors.
[exec] CMake Error at JNIFlags.cmake:113 (MESSAGE):
[exec] Failed to find a viable JVM installation under JAVA_HOME.
[exec] Call Stack (most recent call first):
[exec] CMakeLists.txt:24 (include)
[exec]
[exec]
[exec] -- Configuring incomplete, errors occurred!
The reason is that IBM java uses $JAVA_HOME/include/jniport.h instead of
$JAVA_HOME/include/jni_md.h in Oracle java.
> Native build hadoop-common-project fails on $JAVA_HOME/include/jni_md.h using
> ibm java
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-9435
> URL: https://issues.apache.org/jira/browse/HADOOP-9435
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 2.0.3-alpha
> Reporter: Tian Hong Wang
> Labels: patch
> Fix For: 2.0.3-alpha
>
> Attachments: HADOOP-9435.patch
>
>
> When native build hadoop-common-project with IBM java using command like:
> mvn package -Pnative
> it will exist the following errors.
> [exec] -- Configuring incomplete, errors occurred!
> [exec] JAVA_HOME=,
> JAVA_JVM_LIBRARY=/home/louis/ibm-java-i386-60/jre/lib/i386/classic/libjvm.so
> [exec] JAVA_INCLUDE_PATH=/home/louis/ibm-java-i386-60/include,
> JAVA_INCLUDE_PATH2=JAVA_INCLUDE_PATH2-NOTFOUND
> [exec] CMake Error at JNIFlags.cmake:113 (MESSAGE):
> [exec] Failed to find a viable JVM installation under JAVA_HOME.
> [exec] Call Stack (most recent call first):
> [exec] CMakeLists.txt:24 (include)
> The reason is that IBM java uses $JAVA_HOME/include/jniport.h instead of
> $JAVA_HOME/include/jni_md.h in Oracle java.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira