Thursday, August 2, 2012

Checking if Java/Solaris is 32 or 64 bit

To check if Solaris is 32 or 64 bit, use the following command:

$ isainfo -kv
64-bit sparcv9 kernel modules


To check if JRE in Solaris is 32 or 64 bit, use the following command:

$ java -d64 -version
execve(): No such fie or directory
Failed to start a 64-bit JVM process from a 32-bit JVM

Well, that's a complain :)