How do I set or change the PATH system variable?
Reopen Command prompt window, and run your java code.If the version is old or you get the error java: Command not found then the path is not properly set. Determine which java executable is the first one found in your PATH In a terminal window, enter: % which java.