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

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to