Check if installed version of JRE is 64 bit on solaris Sparc

rwyland picture rwyland · Nov 22, 2011 · Viewed 17k times · Source

Is there a clear or easy way to check over the command line if the installed JRE is 64 bit on a Sparc machine?

I am used to seeing this in:

java -version 

however it appears that Solaris only says what version and build of java is installed.

Answer

jlliagre picture jlliagre · Nov 22, 2011

Run java -d64 -version. It will complain if a 64 bit JVM isn't installed.