3

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

2 Answers 2

7

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .