Eclipse error issues caused by different project versions-about projects written in the JDK1.7 environment, running the JDK1.8 environment

Source: Internet
Author: User

My Computer environment configuration is JDK1.7, the friend is JDK1.8, I put her compiled Java file into the eclipse (Luna version) of my Computer, the project appeared a red exclamation mark, of course, the operation is definitely wrong. So I began the journey of settlement, after a meal toss finally toss well. Below, to commemorate my trip to the wrong line.

First step, display error on Import

In the second step, select the error item and do the following.



The third step: Click Finish after the system will automatically import, then select the project and then right click, select Properties.



Fourth step: According to my marked serial number, step by step click, First point 1, then point 2, the last point 3 (the amount. Awkward), click Finish three appears below the interface, the JDK is set.


Cancel the top tick and select 1.7 ok.


Confirm the change! basically finished.

Final and final "" .....




This is how I solve the problem, I do not know if you have any help.

Eclipse error issues caused by different project versions-about projects written in the JDK1.7 environment, running the JDK1.8 environment

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.