MantisBT - CMake
View Issue Details
0012880CMakeModulespublic2012-01-17 21:512016-06-10 14:31
Dan Kegel 
Kitware Robot 
normalminoralways
closedmoved 
LinuxUbuntu11.10
CMake 2.8.7 
 
0012880: find_package(JNI) can't find ubuntu's jdk
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.
No tags attached.
patch jni.patch (1,859) 2012-01-17 21:51
https://public.kitware.com/Bug/file/4195/jni.patch
Issue History
2012-01-17 21:51Dan KegelNew Issue
2012-01-17 21:51Dan KegelFile Added: jni.patch
2012-06-28 09:17Manuel GRIZONNETNote Added: 0029858
2012-08-11 21:42David ColeStatusnew => backlog
2012-08-11 21:42David ColeNote Added: 0030451
2012-09-11 08:13Manuel GRIZONNETNote Edited: 0029858bug_revision_view_page.php?bugnote_id=29858#r826
2016-06-10 14:28Kitware RobotNote Added: 0041966
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029858)
Manuel GRIZONNET   
2012-06-28 09:17   
(edited on: 2012-09-11 08:13)
I confirm the problem.

The OTB-Wrapping project (based on WrapITK) did not compile anymore on Ubuntu Precise because of this.

http://bugs.orfeo-toolbox.org/view.php?id=533 [^]

(0030451)
David Cole   
2012-08-11 21:42   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041966)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.