File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 13872

Try typing in: java -version

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
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 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:
subject: jvm 32 or 64 bit
Similar Threads
Maximum Ram on 64 bit ubuntu
Launching telnet using java program fails with Win 7 OS
Why storage of boolean is JVM specific?
Unable to execute JNI in a 64 bit machine.
32 bit JVM memory heap issue on 64 bit XP