How do you determine 32 or 64 bit architecture of Windows using Java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please note, the
os.archproperty 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 returnx86In 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)