How do I know whether a machine is a 32 bit one or a 64 bit one using java code?
I tried using System.getProperties(os.arch)
But it actually gives the JRE's one rather than the machine's actual one.
i.e. in my 64-bit machine I have 32-bit JRE installed
The os arch value obtained is x86.
Is there a way to do this?
I thought of checking the size of integer?How do we do this in java and will it help?
Thanks in advance