MantisBT - CMake
View Issue Details
0011183CMakeModulespublic2010-08-30 04:332011-03-28 11:40
JussiP 
Mathieu Malaterre 
normalminoralways
closedfixed 
CMake-2-8 
 
0011183: FindJNI fails on Fedora due to missing path
FindJNI can't find libjvm.so on newest Fedora. This is because on Fedora it is here:

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/libjvm.so
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server/libjvm.so

And this path is not listed in the search directories in FindJNI.cmake.
I tested CMake 2.8. The patches in bug 9611 do not seem to contain these directories.
No tags attached.
Issue History
2010-08-30 04:33JussiPNew Issue
2010-08-30 07:41Kovarththanan RajaratnamCategoryCMake => Modules
2010-08-31 17:27Juhani SimolaNote Added: 0022042
2010-12-15 11:55David ColeAssigned To => Mathieu Malaterre
2010-12-15 11:55David ColeStatusnew => assigned
2011-03-28 11:40Mathieu MalaterreNote Added: 0025927
2011-03-28 11:40Mathieu MalaterreStatusassigned => closed
2011-03-28 11:40Mathieu MalaterreResolutionopen => fixed

Notes
(0022042)
Juhani Simola   
2010-08-31 17:27   
On a related note, the JNI headers located under /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ and /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux are also not found. If JAVA_HOME environment variable is set to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64, these directories are found and stored to variables JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH2. However, when compiling, only the first path is set at command line.
The command line works at least on Debian because the header under linux subdirectory, jni_md.h, has been symlinked to main include directory. On Fedora, the symlink does not exist by default.
(0025927)
Mathieu Malaterre   
2011-03-28 11:40   
$ git push stage HEAD
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 428 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
To git@cmake.org:stage/cmake.git
 * [new branch] HEAD -> fixbug_0011183