[CMake] Java not found

szukw000 szukw000 at arcor.de
Mon Nov 19 20:02:15 EST 2018


cmake-3.12.4 did find the correct version:

-- Found Java: /usr/lib64/java/bin/java (found version "11.0.1")

But the cmake Module FindJava.cmake fails with this warning:

-----------------------------------------------------------
warning: [options] bootstrap class path not set in conjunction with 
-source 5
error: Source option 5 is no longer supported. Use 6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
make[2]: *** [src/bin/jpip/CMakeFiles/OPJViewerJar.dir/build.make:70: 
bin/opj_jpip_viewer.jar] Error 2
make[1]: *** [CMakeFiles/Makefile2:680: 
src/bin/jpip/CMakeFiles/OPJViewerJar.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
-----------------------------------------------------------

Reading FindJava.cmake I found that the highest JAVA version seems
to be 1.9.x . And too for cmake-3.13.0-rc3 .

winfried



More information about the CMake mailing list