Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It seems to be a system variables issue. Even though I uninstalled Java 1.8.0_161, it left folders behind and paths set in the system variables. CMake detects those and tries to use them.

Removing the folders and system variables allows CMake to find java.exe.

So to reiterate:

ANT_EXECUTABLE to 'C:/apache-ant-1.10.2/bin/ant.bat'


JAVA_HOME = C:\Program Files\Java\jdk-9.0.4

I can't answer my own question for another few hours. :/