MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011676 | CMake | Modules | public | 2011-01-10 12:43 | 2011-03-28 11:26 |
Reporter | Gerhard Grimm | ||||
Assigned To | Mathieu Malaterre | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Itanium (IA64) | OS | HP-UX | OS Version | 11.23 |
Product Version | CMake 2.8.3 | ||||
Target Version | Fixed in Version | ||||
Summary | 0011676: find_package(Java) gives warning "regex not supported" | ||||
Description | The system has HP's JRE installed in /opt/java6. The environment variable JAVA_HOME is set accordingly. When calling find_package(Java REQUIRED) in a CMakeLists.txt file, the following warning is issued: regex not supported: java version "1.6.0.06" Java(TM) SE Runtime Environment (build 1.6.0.06-jinteg_20_jan_2010_05_50-b00) Java HotSpot(TM) Server VM (build 14.3-b01-jre1.6.0.06-rc1, mixed mode). Please report Call Stack (most recent call first): CMakeLists.txt:171 (find_package) -- Java version .. configured successfully! -- Found Java: /opt/java6/bin/java (found version "..") | ||||
Steps To Reproduce | 1. Obtain and install the JRE from HP (available for download from https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJDKJRE60 [^] ). 2. Set the environment variable JAVA_HOME=/opt/java6 3. Prepare a CMakeLists.txt file containing the command find_package(Java REQUIRED) 4. Call CMake using this file. | ||||
Additional Information | Looking at line 108 in FindJava.cmake, it becomes clear that the version number reported by java is expected to have the format "1.6.0_06". The problem can thus be fixed by extending the regular expressions used to extract the version information (the fixed version is attached below). | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/3612/FindJava.cmake | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-01-10 12:43 | Gerhard Grimm | New Issue | |||
2011-01-10 12:43 | Gerhard Grimm | File Added: FindJava.cmake | |||
2011-01-10 12:59 | Mathieu Malaterre | Assigned To | => Mathieu Malaterre | ||
2011-01-10 12:59 | Mathieu Malaterre | Status | new => assigned | ||
2011-03-28 11:26 | Mathieu Malaterre | Note Added: 0025926 | |||
2011-03-28 11:26 | Mathieu Malaterre | Status | assigned => closed | ||
2011-03-28 11:26 | Mathieu Malaterre | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|