wood burning stoves 2.0*
The moose likes Java in General and the fly likes compile 32 bit deploy to 64 bit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "compile 32 bit deploy to 64 bit" Watch "compile 32 bit deploy to 64 bit" New topic
Author

compile 32 bit deploy to 64 bit

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly.
Thanks,
Tom

[ January 31, 2008: Message edited by: Tom Henricksen ]
[ January 31, 2008: Message edited by: Tom Henricksen ]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18532
    
  40

Originally posted by Tom Henricksen:
If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly.
Thanks,
Tom


The Java bytecode is the same regardless of whether it is deployed in a 32 bit or 64 bit JVM. When the JVM runs, the JIT will compile the java application from the bytecode to the native enviroment, which will be 32 bit for one case, and 64 bit for the other.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

Thanks Henry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compile 32 bit deploy to 64 bit
 
Similar Threads
Java compiling in 64 bit
struts2 session
What is Compile time constant?
downloading JDK SE 6
Concurrent modification exception in iterator