This is for windows
How to fix "java is not recognized as an internal command or external command"
Let's start! Press Start, type cmd, and hit Enter. You will now get a command prompt screen. Type "java -version", without the "", and you will see something like this:
Notice where it says...