Reliable java runtime version detection with pure java no javascript?
<p>I don't want a solution with javascript do don't propose this</p>

<blockquote>
  <p><a href="http://stackoverflow.com/questions/440160/detect-version-of-java-using-javascript">Detect version of Java using JavaScript</a> </p>
</blockquote>

<p>I have remarked that several sites or java applications running from Internet do not detect java runtime version correctly. For example I may have java 1.6 and it detects I don't even have java 1.4.</p>

<p>Worst It may even abort <a href="http://www.java.com/fr/download/installed.jsp?detect=jre" rel="nofollow">http://www.java.com/fr/download/installed.jsp?detect=jre</a>
with weird message</p>

<pre><code>Sorry! We couldn't find the document requested.

The file that you requested could not be found on this server. If you provided the URL, please check to ensure that it is correct.
</code></pre>

<p>If even Oracle is not capable of doing this, is there a way to have a reliable java runtime version detection ?</p>

<p>How do you do that yourself reliably ?</p>

<p>The other thread <a href="http://stackoverflow.com/questions/491541/how-can-i-detect-the-java-runtime-installed-on-a-client-from-an-asp-net-website">How can I detect the Java runtime installed on a client from an ASP .NET website?</a> is aimed at detecting only java not java VERSION as far as I can see for java version it doesn't only use js but also java and this doesn't garantee anyhow that it actually works reliably.</p>

<p>Update: finally the above thread contains a link which seems to work I didn't see it in the first place.</p>
