MantisBT - CMake
View Issue Details
0002951CMakeModulespublic2006-03-10 05:212016-06-10 14:30
Eric Boix 
Bill Hoffman 
lowfeaturealways
closedmoved 
 
 
0002951: FindJava.cmake: Javah header compiler detection and JAVA_FOUND
FindJava.cmake doesn't search for Java's header
compiler (javah on Un*x). Add such a detection.
Additionaly, add a JAVA_FOUND boolean variable
that states wether java package was properly
detected or found. (well some other Modules
do that, and it is very convenient for the caller, but is it a good Module practice?).
See attached file which I currently use as extension.
Thanks !
No tags attached.
? FindJavaExtended.cmake (1,077) 1969-12-31 19:00
https://public.kitware.com/Bug/file/475/FindJavaExtended.cmake
Issue History
2009-05-13 06:54Boris BrodskiNote Added: 0016414
2016-06-10 14:27Kitware RobotNote Added: 0041308
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0003860)
Bill Hoffman   
2006-03-10 09:33   
I think you may want to look at FindJNI.cmake
(0003861)
Eric Boix   
2006-03-13 11:22   
Concerning FindJNI.cmake (and with my very low understanding of Java) it basically looks for the path to java header files (and library). Hence the result of FindJNI.cmake is a path to headers (and a path to a java library).
My request was on the java's C header compiler which is a binary (named javah on linux) which (excerpt from the man pages):
   generates C header and source files that are needed
   to implement native methods. The generated header
   and source files are used by C programs to
   reference instance variables of an object from
   native source code.
Hence, as I understand it FindJNI.cmake and my request seem to serve quite different purposes (hummm, don't quote me on this :-)
   Respectfully yours.
(0016414)
Boris Brodski   
2009-05-13 06:54   
I would support this feature request. It's very handy, if you can simply call javah from cmake, if you try to compile Java-C bridge. Thank you.
(0041308)
Kitware Robot   
2016-06-10 14:27   
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.