I am trying to call native executables from java program. I have three exe files one for win32, other linux 32-bint and third linux 64-bit, now before I can call the right executable I need to determine which platform program is running on. I can determind Operating system by simply getting “os.name” System property, but not sure how to get determine if it is 32-bit or 64-bit platform?
Share
Here are some relevant System properties with the values on my machine:
From this information, you should be able to guess something like this:
For a completer reference, see: