After setting up java path in environment variable option in Advanced System Setting . javac command shows "'javac' is not recognized as an internal or external command, operable program or batch file." but after executing the command
C:\java files>set path=C:\Program Files (x86)\Java\jdk1.7.0\bin
javac works but again after reopening the Command Prompt javac doesn't work. What is the problem whys is it occurring. OS Windows 10 Enterprise Java version 1.8.0_77.
P.S. java is working whereas javac is not working.