The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12880 ====================================================================== Reported By: Dan Kegel Assigned To: ====================================================================== Project: CMake Issue ID: 12880 Category: Modules Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-01-17 21:51 EST Last Modified: 2012-01-17 21:51 EST ====================================================================== Summary: find_package(JNI) can't find ubuntu's jdk Description: FindJNI.cmake is very fragile, it uses a hardcoded list of known absolute paths of installed JDKs. This list needs updating to handle Ubuntu 11.10 and 12.04.
Well, really, it has two hardcoded lists, one for libs and one for include files. This makes it even more fragile, since include files and libs could get out of sync, I think. Here's a quick patch that adds just adds in the particular paths used by Ubuntu 11.10 and 12.04. Tested on all five jdks, both 32 and 64 bits (with the script http://code.google.com/p/winezeug/source/browse/trunk/cmake_examples/ex11/test.sh ). Because the paths vary by architecture, I had to expand variables in the include list, as was already done for the libs list. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-01-17 21:51 Dan Kegel New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
