title: Update Windows path variable when Java is updated automatically?
body: <p><a href="https://stackoverflow.com/questions/1678520/javac-not-working-in-windows-command-prompt">This question</a> asks how to setup your path variable in Windows to include the Java bin directory allowing you to use the javac command from the prompt.  The solution posted to this question states you should hard code the absolute path of the latest Java installation.</p>
  
  <p>In this case it happens to be <code>c:\program files\java\jdk1.6.0_16\bin</code></p>
  
  <p>I believe once Java update 17, 18 and beyond are installed your javac cmd will still be using this older version, correct?  </p>
  
  <p>Am I missing something??  Is there a way to set this to automatically use the most recent installed java update??</p>