How to detect if 32 or 64 bit JDK is installed?

18,152

Solution 1

To check, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

java -version

For 64-bit, you'll see 64-bit Server VM instead of Client VM. See image below:

enter image description here

Solution 2

Run the commands: java -d64 -version or java -d32 -version and you will get an error for the version that is not supported.

enter image description here

Share:
18,152

Related videos on Youtube

ubuntico
Author by

ubuntico

Updated on September 18, 2022

Comments

  • ubuntico
    ubuntico over 1 year

    How can I detect if 32bit or 64bit Java JDK (SDK) has been installed on my machine? I am running a 64bit Ubuntu.