Jre7 Change Jre8 problem

Source: Internet
Author: User


It's been a long time since I changed the JDK version on Eclipse, and today we switched the Eclipse development environment from jdk1.7 to jdk1.8.

Because some features require a jar package provided by jdk1.8. such as: Java.util.stream.Collectors this class of loading.

First I changed the JDK version path for Eclipse to 1.8 and the build environment to 1.8.

The result throws the unsupported Major.minor version 52.0 issue because the version of the project compilation is inconsistent with the JDK version provided by Eclipse.

This requires that the JDK version of the project be replaced with the 1.8 version, and then a run error occurs with the specified JRE installation does not exist.

Online said Will window->perferences->server->installed runtimes in the deletion, re-establish services, and then run

OK, so the problem is solved. Runtime also encounters description Resource Path location Type Java compiler level does not match the version of the install ... Facets

This needs to change Properties->project Facets Java into 1.8.

It's just for the record. Well, it's time to settle down.


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.