How do you determine 32 or 64 bit architecture of Windows using Java?
Please note, the os.arch property will only give you the architecture of the JRE, not of the underlying os.
If you install a 32 bit jre on a 64 bit system, System.getProperty("os.arch") will return x86
In order to actually determine the underlying architecture, you will need to write some native code. See this post for more info (and a link to sample native code)