When I open the Windows 10 command line and write "java -version" at the cursor, the response is: java version "1.8.0_391" Java(TM) SE Runtime Environment (build 1.8.0_391-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.391-b13, mixed mode)
However, when I use the OSGeo4W Shell command line, and type "java -version", the response is: 'java' is not recognized as an internal or external command, operable program or batch file.
When I try to use the Whitebox Tools tools for rasters, this error message appears: 'java' is not recognized as an internal or external command, operable program or batch file. Process returned error code 1
How to fix this error?