jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes jvm 32 or 64 bit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "jvm 32 or 64 bit" Watch "jvm 32 or 64 bit" New topic

jvm 32 or 64 bit

Abhay Katekar

Joined: Jan 12, 2006
Posts: 11
How can one find out if the jvm version is 32 bit or 64 bit.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15082

Try typing in: java -version

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Abhay Katekar

Joined: Jan 12, 2006
Posts: 11
Hi Jesper,

Did it.

C:\>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

Thats the output.
Now how can I tell if its 32 bit jvm or 64 bit jvm version from this output.
Please help.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
I'm 95% sure there is no 64-bit version of Java 1.4.x from Sun, so you have a 32-bit Java. Check at http://java.sun.com to be sure.

Perhaps, in later Java versions where there is a 64-bit option, the version information may tell you which it is.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Abhay Katekar

Joined: Jan 12, 2006
Posts: 11

Will check out for the jdk version 1.5.

That should solve the problem.
I agree. Here's the link: http://aspose.com/file-tools
subject: jvm 32 or 64 bit
It's not a secret anymore!