CMake tries to load CMakeDeterminejavaCompiler.cmake which does not exist
When trying to run a very simple Java project:
find_package(Java REQUIRED COMPONENTS Runtime Development)
CMake (version 3.10.2 on Ubuntu 16.04) produces this error:
CMake Error: Could not find cmake module file: CMakeDeterminejavaCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_java_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_java_COMPILER
Since Linux is case sensitive, CMakeDeterminejavaCompiler.cmake is not found since it exists as CMakeDetermineJavaCompiler.cmake