How to set java path in PATH (system / environment variable) in windows 10 operating system so that you can compile and run java program from command prompt. If you don't set the java path you will get one compile time error saying - " javac is not recognized as an internal or external command".