Java jdk1.6 Upgrade to 1.7

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.