It seems like the right directory isn’t added to your path. You may configure your environment variables,
JAVA_HOME and PATH
to see if it works for you. Make sure that:
JAVA_HOME contains the path to JAVA,
add %JAVA_HOME%\bin to the PATH,
and check the status of the issue.
Note: If you’ve an older version of jdk installed, you may want to uninstall it and check.