https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086
--- Comment #11 from Tobias C. Berner <tcber...@freebsd.org> --- (In reply to Yuri Victorovich from comment #10) It should generally use ${JAVA_HOME}/bin/java [1] -- what I meant is, that the custom-commands in surelog don't use ${Java_JAVA_EXECUTABLE} but 'java' -- so even if cmake were able to find the one you want, the target would still execute the one in path :) [1] https://github.com/Kitware/CMake/blob/master/Modules/FindJava.cmake#L89 -- You are receiving this mail because: You are the assignee for the bug.