How do I set or change the PATH system variable?
The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and Solaris.Close all remaining windows by clicking OK. Reopen Command prompt window, and run your java code.