|
From: Richard E. <rem...@ed...> - 2006-05-16 21:56:23
|
I have to support solaris, linux and windows on 32 and 64 bit machines. The wrapper executable and native library comes in 32 and 64 bit versions for those OSs. What I need is the ability during an installation to know what the machine (the hardware) architecture is, 32 or 64 bit. I need to be able to know this from within a java process (actually an Ant task). I discovered today on my 64 bit workstation that if I run java 1.4.x, a 32 bit java, then the system property os.arch has the value i386 but if I run java 1.5.x the os.arch has the value amd64 --- os.arch does not give the hardware architecture but rather the java vm architecture. In order to install the correct version of the wrapper executable and native libaray I need the true hardware architecture independent of what jvm I will be running. Any thoughts as to how to get this information using just java? Richard -- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. |