Operating System Detection by Java or JavaScript
<p>I need to detect OS name &amp; version in Java. That I can do by </p>

<pre><code>String os_name = System.getProperty("os.name", "");
String os_version = System.getProperty("os.version", "");
</code></pre>

<p>but the problem is that this is not reliable. Sometimes it returns incorrect information, and I can't detect all operating systems, except the most popular Windows, MacOS, Linux etc, and this even provides wrong information in the case of 64 bit operating systems. I need to detect any OS with any kind of specification. I am unable to find the right solution for this.</p>

<p>Maybe I can do this with JavaScript? If it's impossible in Java then please tell me how to do it with JavaScript.</p>

<p>Any input or suggestions highly appreciated.</p>

<p>Thanks in advance.</p>

<p>Best regards,</p>

<p>**Nilanjan Chakraborty</p>
