and I think it is very easy to mess up, if I put the x86 path first,
When I compile x64 java applications, the process will terminate and it is very easy to forget which is which...
K. Tsang wrote:Why do you want to have both x86 and x64 JDK? The compile bytecodes are the same whether you use x86 or x64. The only difference is probably in the runtime where x64 can use maximum memory just like Windows 64-bit OS (can use more than like 3GB if machines has >3GB RAM).
I see.... So I will keep on using x86 version
Note that JAVA_HOME is not used by the JDK or JRE itself. Some third-party software uses this to locate the Java installation, but Java itself does not require JAVA_HOME to be set.
As K. Tsang already noticed, there is no such thing as a "32-bit Java application" and a "64-bit Java application". The byte code that the Java compiler produces is exactly the same, no matter if you use the 32-bit or 64-bit JDK, and programs compiled with one will also run on the other.