JDK and eclipse installation in win7 64-bit environment
At present, no matter whether the laptop or desktop memory is already the price of cabbage, memory configurations above 4 GB can be seen everywhere. I recently upgraded my laptop's memory to 8 GB. Naturally, I want to better support large-capacity memory and install 64 systems as necessary. According to my personal usage, I have not found any commonly used software that is incompatible with 64-bit win7.
Back to the topic, as a coder, the development environment must be built. In a 64-bit system, the most common is the choice of eclipse64 + JDK 64-bit. This is also the case in my notebook environment.
The official website is as follows:
Eclipse: http://www.eclipse.org/downloads/ (currently the latest is 3.7, Which is indigo)
JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html (I chose jdk1.6.029)
64-bit system users should download file names such as: jdk-6 <version> -windows-x64.exe, file name with x64
32-bit system users should download file names such as: jdk-6 <version> -windows-i586.exe, file name with i586
After JDK is installed, if it is a 64-bit JDKProgram", We can see that JDK is marked with 64-bit
However, many friends asked me if I can use a 32-bit JDK. What about a 32-bit eclipse? Of course. In fact, I also installed a 32-bit JDK in my notebook (it seems that the system compiled with Maven prompts JDK incompatibility. It seems that I cannot remember it ......), Java_home and other normal configurations. Only the 32-bit JDK will be installed under c: \ Program Files (x86) by default, and java_home will point to here.
Besides, for 32-bit eclipse, if your java_home is configured with a 32-bit JDK, you can only use 32-bit eclipse by default. If you configure a 64-bit JDK and want to use a 32-bit eclipse, You need to modify the eclipse. ini file. In-vmargs, add the 32-bit JDK path, which is consistent with the path configured for java_home.
For example:
-Vmargs
D: \ Program Files \ Java \ jre6
Similarly, you should use 64-bit eclipse when Java _ home is configured with a 32-bit JDK.