View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008919CMakeCMakepublic2009-04-21 15:402009-04-21 17:09
ReporterDaniel Richard G. 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008919: FindJNI.cmake misses JAVA_{AWT,JVM}_LIBRARY on Win32 when JAVA_HOME is used instead of registry
DescriptionI have a Windows system in which the JDK is served up by a network drive. There are, then, none of the registry entries created by the standard Java installer; I have to use the JAVA_HOME environment variable to specify the location of the Java installation.

FindJNI.cmake fails to find JAVA_AWT_LIBRARY and JAVA_JVM_LIBRARY (/path/to/jawt.lib and /path/to/jvm.lib, respectively), however, because these files are not installed in any of

  $ENV{JAVA_HOME}/jre/lib/i386
  $ENV{JAVA_HOME}/jre/lib/amd64
  $ENV{JAVA_HOME}/jre/lib/ppc

(Note that FindJNI.cmake does successfully complete otherwise.)

These libraries, in Windows installations of Java 1.5.0 and 1.6.0, are present in

  $ENV{JAVA_HOME}/lib

The attached patch (against CVS) adds this line, below the aforementioned three.
TagsNo tags attached.
Attached Filespatch file icon cmake-jni-win32-fix.patch [^] (518 bytes) 2009-04-21 15:40 [Show Content]

 Relationships
has duplicate 0009108closedPhilip Lowman FindJNI.cmake on Windows without JDK Entry in Registry 

  Notes
(0016123)
Alex Neundorf (developer)
2009-04-21 17:09

Thanks, committed to HEAD.

Alex

 Issue History
Date Modified Username Field Change
2009-04-21 15:40 Daniel Richard G. New Issue
2009-04-21 15:40 Daniel Richard G. File Added: cmake-jni-win32-fix.patch
2009-04-21 17:07 Alex Neundorf Status new => assigned
2009-04-21 17:07 Alex Neundorf Assigned To => Alex Neundorf
2009-04-21 17:09 Alex Neundorf Note Added: 0016123
2009-04-21 17:09 Alex Neundorf Status assigned => closed
2009-04-21 17:09 Alex Neundorf Resolution open => fixed
2009-08-12 22:53 Philip Lowman Relationship added has duplicate 0009108


Copyright © 2000 - 2018 MantisBT Team