Originally Posted by 273
If your CPU and Linux version are 64 bit ones (you can check this by running "uname -a" without the quotes on the command-line) then you should generally be using the AMD64 versions of applications if you can.
The reason the architecture is called AMD64 is because it was invented by AMD and Intel license the technology from them to use in their CPUs. For 32 bit applications you usually see them marked as i386 or i686 referring to the model numbers of the Intel CPUs that use the instruction sets they are compiled for:
uname -a returns:
38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
So I guess as far as Linux is concerned, this is an x86_64 machine.
I guess JAVA_HOME is supposed to refer to the major directory that contains /bin and /jre subdirectories. It seems that different versions of java install different subdirectories in different places, though.
I'm not sure whether it will become necessary to have several different settings for the $JAVA_HOME variable.