[Bug 266086] devel/cmake: cmake fails to find Java 11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Aug 2022 17:22:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086 Bug ID: 266086 Summary: devel/cmake: cmake fails to find Java 11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org This CMakeLists.txt: > cmake_minimum_required(VERSION 3.15) > find_package(Java 11 REQUIRED COMPONENTS Runtime) fails to find Java 11: > CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): > Could NOT find Java: Found unsuitable version "1.8.0.342", but required is > at least "11" (found /usr/local/bin/java, found components: Runtime) > Call Stack (most recent call first): > /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE) > /usr/local/share/cmake/Modules/FindJava.cmake:309 (find_package_handle_standard_args) > CMakeLists.txt:4 (find_package) when several Java versions are installed: > $ pkg info | grep -i openjdk > bootstrap-openjdk17-17.0.1.12.1 Java Development Kit 17 > openjdk11-11.0.16+8.1 Java Development Kit 11 > openjdk17-17.0.4+8.1 Java Development Kit 17 > openjdk8-8.342.07.1 Java Development Kit 8 cmake-3.23.3 FreeBSD 13.1 -- You are receiving this mail because: You are the assignee for the bug.