How to check 32bit or 64bit machine using Java
800628Jun 18 2008 — edited Oct 17 2008Hi friends,
How to find the underlying machine architecture (32bit or 64bit) using Java.
Some sites say there is a java system property sun.arch.data.model which gets the architecture. But the other sites say it only gets the JVM size.
And one guy has checked on an HP-UX running on an Itanium2 (64 bit CPU) using a 32-bit JVM and he got sun.arch.data.model=32.
Please someone resolve this issue.
Please suggest the exact way to detect the architecture using Java 1.6
Regards,
Praveen