title: I have installed Java JDK10 , I have double checked in my program files that it is installed , but command promt won't run "javac"
body: <p>I have installed Java JDK10 , I have double checked in my program files that it is installed , but command promt won't run "javac".</p>
  
  <p>When I try run "javac" it returns this error. 
  <code>'javac' is not recognized as an internal or external command, operable program or batch file.</code></p>
  
  <p>But when I do <code>set "path=%path%;C:\Program Files\Java\jdk-10\bin"</code>
  and then run 'javac' <strong>It works!</strong>.
  After that if I close cmd and reopen it, it still doesnt work!</p>
  
  <p>Any ideas?</p>