View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002951CMakeModulespublic2006-03-10 05:212016-06-10 14:30
ReporterEric Boix 
Assigned ToBill Hoffman 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002951: FindJava.cmake: Javah header compiler detection and JAVA_FOUND
DescriptionFindJava.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 !
TagsNo tags attached.
Attached Files? file icon FindJavaExtended.cmake [^] (1,077 bytes) 1969-12-31 19:00

 Relationships

  Notes
(0003860)
Bill Hoffman (manager)
2006-03-10 09:33

I think you may want to look at FindJNI.cmake
(0003861)
Eric Boix (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2009-05-13 06:54 Boris Brodski Note Added: 0016414
2016-06-10 14:27 Kitware Robot Note Added: 0041308
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team