aspose file tools
The moose likes Java in General and the fly likes Java compiling in 64 bit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Java compiling in 64 bit" Watch "Java compiling in 64 bit" New topic
Author

Java compiling in 64 bit

Patrick Davenport
Greenhorn

Joined: May 12, 2009
Posts: 10
Hello,
I'm currently developing on a 64 bit machine. I have never developed on such a machine before. Does the fact that I'm on a machine like this require that set some compiling flag to compile to code that will execute on a 32 bit machine?

Thanks,
Patrick
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16680
    
  19

No. At compile time, compilation is done to java bytecodes -- which is not dependent on the bit size of the native machine.

At run time, however, it depends on the type of JVM. If you are using a 64 bit JVM on your 64 bit machine, the JIT (just in time) compiler will compile the bytecodes to native 64 bit instructions. If you are using a 32 bit JVM, on either a 32 bit or 64 bit machine, it will still JIT to the native 32 bit instruction set.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java compiling in 64 bit
 
Similar Threads
Running java jar with ram of 2GB
Which Linux OS to select for Tomcat 6
Compiling an application for 64-bit
Maven Plugin for Eclipse Helios
Problem creating a Microsoft Access connection from a file