The latest in the project when the computer encountered the default installation of Java jdk1.6, but its own project to use the Java jdk1.7.
It is therefore intended to upgrade the jdk1.6 to 1.7 without affecting the programs that use jdk1.6. The upgrade method is summarized as follows:
1. Replace the java.exe,javac.exe,javaw.exe,npdeployjava1.dll,deployjava1.dll of jdk1.6 in C:\Windows\System32 with the jdk1.7 corresponding documents;
2. Jdk1.6 default installation files C:\Program Files\java replaced with jdk1.7 corresponding files;
3. The following error may occur after the previous step:
C:/>java-versionregistry key ' Software/javasoft/java runtimeenvironment/currentversion ' have value ' 1.6 ', but ' 1.7 ' is required. Error:could not find java.dllError:could not find Java SE runtimeenvironment
The following configuration is required:
If it does not exist: /jre/bin/java.dll (when running Winnt/system32/java.exe), the registry will work at this point, hkey_local_machine/software/javasoft/javaruntime The Environment/currentversion key value is actually recorded as the version value of Winnt/system32/java.exe, which only holds the primary, secondary, two version numbers, such as 1.6,1.7.
Java jdk1.6 Upgrade to 1.7