Question:
Is both JDK 32-bit and 64-bit necessary for compiling Java files?
?
2010-10-31 11:32:53 UTC
I have a 64-bit Windows 7, and I have the Java SE Development kit 64-bit for compiling Java files using jGrasp (Program text editor). I was wondering if I needed both 64 and 32 bit install of the same development kit, because I don't have much space to spare on my HDD. Can anyone help me?
Thanks!
Three answers:
Voice of Insanity
2010-10-31 11:41:42 UTC
No, you only need one of them. It doesn't matter which one you use except if you want to run java applets in your browser. Then you need the 32 bit version.

In fact it's probably best to just install the 32 bit version. It consumes less space on the hard disk and needs less RAM. The 64 bit version is intended mostly for professional use.
SĂ­dhe
2010-10-31 19:10:59 UTC
The compiler (and the outputted byte code) is the same with both. There will be no difference at all between the compiled programs. NONE AT ALL.



The 64 bit compiler itself will run somewhat faster on a 64 bit machine due to better use of the registers. However, that's only the performance of the compiler itself -- not the bytecode it produces, which -- again -- will be exactly the same.



So if you don't care if your program takes 3 seconds to compile versus 4 seconds to compile, then it really doesn't matter which one you use.
deonejuan
2010-10-31 19:12:18 UTC
You only run the JRE 64-bit for faster execution.There is no JDK 64. In java you code to the 'p' machine with one language.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...