title: How can I check the bitness of my OS using Java? (J2SE, not os.arch)
body: <p>I'm developing a software application that checks what kind of software you have installed, but in order to do so, I must know if the OS is a 32 bit or a 64 bit OS.</p>
  <p>I tried System.getProperty(&quot;os.arch&quot;); but then I read that this command only shows us the bitness of the JDK/JRE, not the OS itself. If you could tell me how to know which OS is being used (Windows 7, Mac OS, Ubuntu, etc...) that would be simply awesome.</p>