View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014032CMakeModulespublic2013-03-20 10:422016-06-10 14:31
ReporterPol Monsó Purtí 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWIndows 7OS VersionWIndows 7
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014032: Find_Java fails to prioritize JAVA_HOME
DescriptionFindJava.cmake chooses the vewest version of Java instead of the one pointed by the environment variable JAVA_HOME.

If there are several versions and the user targets a particular one, there's no way to tell cmake.
Steps To Reproduce1. install several versions of jdk.
2. set JAVA_HOME to the oldest one
3. Run a cmake with Find(Java) and check the output
Additional InformationI could fix this by changing FindJava.cmake

from

set(_JAVA_HINTS
"[HKEY...]/bin"
[...]
$ENV{JAVA_HOME}/bin
)

to

set(_JAVA_HINTS
$ENV{JAVA_HOME}/bin
"[HKEY...]/bin"
[...]
)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042254)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-03-20 10:42 Pol Monsó Purtí New Issue
2016-06-10 14:28 Kitware Robot Note Added: 0042254
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team