A high-version JDK-compiled project moved to an error in eclipse of the lower version of the JDK

Source: Internet
Author: User

Due to the different JDK versions installed on 2 PCs, an error occurred while moving items from one computer to another, with the following error message:

The main thing was that the JDK version of the original project was 1.8, and the JDK for the computer to be moved was 1.7, and the build The version of the JRE in path is replaced by the 1.7 version of this machine, but there is the above problem, the Internet to find a bit, the general meaning is the JDK version inconsistency caused, but the real inconsistency is because the project was compiled on the 1.8 version of the compiler run, all project properties in the compiler version is set to 1.8, all only This setting is the same as the native JDK, which is set to right-click on the project name and select the Java Compiler---in the JDK compliance on the right, select Compiler Compliance level: 1.7, consistent with native JDK version, OK.

A high-version JDK-compiled project moved to an error in eclipse of the lower version of the JDK

Related Article

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.