Check if installed version of JRE is 64 bit on solaris Sparc
17,293
Run java -d64 -version
. It will complain if a 64 bit JVM isn't installed.
Author by
rwyland
Engineer, Entrepreneur, Coffee and Beer geek, Auto Enthusiast, DIYer
Updated on June 28, 2022Comments
-
rwyland almost 2 years
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.
-
rwyland over 12 yearsThanks @jlliagre I ran a quick program that printed "sun.arch.data.model" and was continually getting 32, however when I ran the -d64 flag I received the the result of 64. Will the machine know when to use 64 bit or will you always have to specify?
-
jlliagre over 12 yearsThe machine cannot "know" when to use 64 bit, it is your choice when you start the JVM.
-
rwyland over 12 yearsI am used to *nix machines automatically using the 64 bit JVM when its installed; I thought it was odd that the JVM in solaris runs 32 and 64 at the same time, but I guess that is why you have to specify. Thanks again
-
Tuan almost 10 yearsThank you, just looking for it.