[cmake-developers] [CMake 0015408]: FindJNI missing JAVA_AWT_LIBRARY on JDK9 as jdk/lib/<arch> is not included in JAVA_AWT_LIBRARY_DIRECTORIES

Mantis Bug Tracker mantis at public.kitware.com
Wed Feb 18 01:12:57 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15408 
====================================================================== 
Reported By:                Tiago Stürmer Daitx
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15408
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-02-18 01:12 EST
Last Modified:              2015-02-18 01:12 EST
====================================================================== 
Summary:                    FindJNI missing JAVA_AWT_LIBRARY on JDK9 as
jdk/lib/<arch> is not included in JAVA_AWT_LIBRARY_DIRECTORIES
Description: 
JDK9's directory structure changes and no jdk/jre exists. The right arch lib
path is now jdk/lib/<arch> (instead of jdk/jre/lib/<arch>).

CMake error when building hadoop-common:
     [exec] CMake Error at
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
     [exec]   Could NOT find JNI (missing: JAVA_AWT_LIBRARY)
     [exec] Call Stack (most recent call first):
     [exec]  
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FA-- Detecting CXX compiler ABI info - done
     [exec] -- Configuring incomplete, errors occurred!
     [exec] See also
"/home/tdaitx/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeOutput.log".
     [exec] ILURE_MESSAGE)
     [exec]   /usr/share/cmake-2.8/Modules/FindJNI.cmake:252
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
     [exec]   CMakeLists.txt:103 (find_p
     [exec] ackage)


Steps to Reproduce: 
1. Build JDK9
2. Compile hadoop-common-project/hadoop-common

Additional Information: 
hadoop-common has its own bug and might require a patch, see
https://issues.apache.org/jira/browse/HADOOP-11610
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-02-18 01:12 Tiago Stürmer DaitxNew Issue                                  
 
======================================================================



More information about the cmake-developers mailing list