title: Use deployJava.js to check for/automatically install latest JRE version for web applet
body: <p>I'd like to use the deployJava.js tool to have Java automatically detect the currently installed JRE and install an updated version if necessary.  My initial impression when reading about deployJava.js was that it would do this out of the box when you simply set a version number as a function parameter for the "runApplet" function.  But this has never seemed to work.</p>
  
  <p>Is it even possible to do this, and if so, how?</p>
  
  <p>Here is my current code for launching my applet:</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://www.java.com/js/deployJava.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      var attributes = {id:"applet", name:"TheApplet", code:"TheApplet"}; 
      var parameters = {jnlp_href: "http://localhost/TheApplet.jnlp"};
      deployJava.runApplet(attributes, parameters, "1.6.0_31");
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks</p>