You are not logged in.

#1 2025-01-24 22:28:31

schnedan
Member
Registered: 2012-11-02
Posts: 18

cmake + java

at work today I found the following:

a cmake script, compiling a java app, which worked fine weeks ago in 2024, stopped working.

cmake failed with locating java (findpackage)

currently there have been installed
openjdk's 8, 17 and current 23 with 17 set active.


after trying to set various environment variables, I set active to jdk 23 and magically everything worked again.

my question is
my fault? (well find and usepackage is a cmake 2 liner you hardly can get wrong)
a bug in cmake?
a bug in archlinux's method to install multiple jdk's

?

note: Well I guess, at the time of writing the cmake-script back in the day, by accident I was on the newest default jdk and so it worked.

Offline

Board footer

Powered by FluxBB