Error

Not able to find Java executable or version. Please check your Java installation. errorlevel=2

Solution

You may miss the Pat path( %SystemRoot%\system32;%SystemRoot%;), which must be behind the JDK configuration.