java detect machine architecture linux
As I am writing some installer code,I was required to detect machine architecture before proceeding.
I tried to detect machine architecture (32 / 64 Bit) from Java.
From these links, I got two code.
http://stackoverflow.com/questions/1856565/how-do-you-determine-32-or-64-bit-architecture-of-windows-using-java
https://community.oracle.com/thread/2061806
As I am writing some installer code,I was required to detect machine architecture before proceeding.
I tried to detect machine architecture (32 / 64 Bit) from Java.
From these links, I got two code.
http://stackoverflow.com/questions/1856565/how-do-you-determine-32-or-64-bit-architecture-of-windows-using-java
https://community.oracle.com/thread/2061806
System.getProperty("os.arch")&
System.getProperty("sun.arch.data.model")
I am running 64 Bit, Centos system and in my system,System.getProperty("os.arch") , showed as amd64&System.getProperty("sun.arch.data.model"), showed as 64
No comments:
Post a Comment