Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDK 64bit or 32bit?

Tags:

java

My pc is using Windows 7 64 bit. But the server where my jsp web applications will be deployed is 32 bit.

Do I need to install 32bit JDK/JRE in my PC to develop? I'm using Eclipse.

Thank you very much.

like image 539
Jacob Avatar asked Feb 23 '12 10:02

Jacob


People also ask

What is the difference between 32 bit and 64 bit JDK?

32 bit is 4 bytes of size, whereas 64 bit is 8 bytes of size. That means 64 bit takes more memory than 32 machines. Most of the times, if your code compiles with the 32-bit JDK version, then you need to execute these class files in a 32-bit machine/64-bit machine only.

Should I use 32-bit or 64-bit Java?

Users should use 32 bit Java and plan to use 64 bit Java later. Mozilla Firefox on Windows is 32 bit, showing 64 bit as a Tier-3 platform. Users should use the 32 bit Java to run inside Firefox. Linux is similar to Mac in that most browsers are already 64 bit. In most cases, users of 64 bit Linux should use 64 bit Java.

How can I download Java 32 bit for free?

You just need to the Agree and Start Free Download button. However, nowadays most browsers are 64 bit and that website will offer you’re the Java 64 bit download. If you want to get the Java 32 bit download, you need to click the See all Java downloads link. Scroll down and you will see the Java 32 bit downloads.

Where can I download JDK for Java?

Java is initially developed and released by Sun MicroSystems company, but in 2009, this company was acquired by Oracle company. Since then, Java has been released and maintained by the Oracle company. So, to download JDK, you should go to the official Oracle website.


1 Answers

You definitely don't need to install a 32-bit JRE in order to develop. The Java code that you build won't have any trace of your 64-bit-ness. (I'm assuming you're not using JNI, which would complicate matters somewhat.)

You may want to install a 32-bit JRE for testing purposes though - to make sure you're not trying to use more than 2GB of memory etc.

like image 130
Jon Skeet Avatar answered Sep 27 '22 15:09

Jon Skeet