title: how to detect if java installed in my computer from javascript?
body: <p>I want to detect if java installed in my computer from javascript , so that in case java is not installed on the user machine , then he can be notified that there is no java on your computer so you must first install java in your computer then only you should download the jnlp file from our website .</p>
  
  <p>Please note that the solution shuould work on all browsers .</p>
  
  <p>Things i have already tried :</p>
  
  <ol>
  <li><code>navigator.javaEnabled()</code> is not solving the problem as it is for detecting the java in the browser , which i don't want as i want to detect java in my computer(some users computer on client machine)</li>
  <li><code>JavaWebToolKit(deployJava.js)</code> , i have already checked this js , methods in this js to detect <code>JAVA VERSION</code> and java are not working on all browsers , moreover it will return true even when java is not installed .</li>
  <li>using commandline cmd to check the value for <code>JAVA_HOME</code> and <code>java -version</code> , this will not work in case java is installed but classpath is not set </li>
  <li>running applets to run check for java will not work , as applet support is removed from java future versions , though we can still use JNLPs</li>
  </ol>