Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to check 32bit or 64bit machine using Java

800628Jun 18 2008 — edited Oct 17 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2008
Added on Jun 18 2008
8 comments
2,669 views