Recently I have faced this problem and my finding is for Windows 7 adding javac to the "path" environment variable works but for windows 10, you can do anything means Add a new environment variable or update the existing one.
Recently I have faced this problem and my finding is for Windows 7 adding javac to the "path" environment variable works but for windows 10, you can do anything means Add a new environment variable or update the existing one.