Adding the following will resolve your issue:
set JAVA_HOME="your jdk path"
set PATH=%JAVA_HOME%\bin;%PATH%.
Additionally if it does not work that means you have set the `PATH` for multiple java versions, include only the latest one and remove all from `PATH` variables.
Adding the following will resolve your issue:
set JAVA_HOME="your jdk path"
set PATH=%JAVA_HOME%\bin;%PATH%.
Additionally if it does not work that means you have set the `PATH` for multiple java versions, include only the latest one and remove all from `PATH` variables.