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.

Share:
17,293
rwyland
Author by

rwyland

Engineer, Entrepreneur, Coffee and Beer geek, Auto Enthusiast, DIYer

Updated on June 28, 2022

Comments

  • rwyland
    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
    rwyland over 12 years
    Thanks @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
    jlliagre over 12 years
    The machine cannot "know" when to use 64 bit, it is your choice when you start the JVM.
  • rwyland
    rwyland over 12 years
    I 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
    Tuan almost 10 years
    Thank you, just looking for it.