Eclipse's support for JAVA8

Source: Internet
Author: User

Eclipse Luna SR2 has added support for Java8 and can download Luna directly from the website. I have a version of Eclipse for Mac here.

If you are too lazy to download Luna and already have Kepler SR2, you can add support for JAVA8 with the following three steps. Pro-Test success The following methods are performed in the context of the (Mac Yosemite + English version of the Eclipse Kepler SR).
First step:
1, open Kepler SR2, help-> Install New Software, open the Available Software dialog box, 2, and fill in work with http://download.eclipse.org/ eclipse/updates/4.3-p-builds/
3, select Eclipse Java 8 Support (for Kepler SR2) 4, point Next,next, Read and Accept License, point finish 5, and after the progress bar is gone, prompt to restart Eclipse. After you restart Eclipse, you can use the ability to compile Java 8.


Step Two: (If you have JDK8 installed and added to eclipse, you can ignore this step)
The above is that eclipse can compile Java 8 programs, but at the same time, you also need to install JDK8, download the jdk8 after installation, do the following steps in eclipse Kepler preference-> Java-> installed- > Add jdk1.8 (add-> standard vm->next-> Find the Java8 JRE path->finish)

Third StepModify JDK Compliance so that you can support the latest features of Java8 preference-> Java->compiler, JDK compatibility option 1.8, before KeplerSR2 installs JAVA8 support, The JDK is the highest compatible 1.7.
Complete the above three, you can compile a Java 8 program
Java 8 has a lot of quality features, such as lambda expressions, optional, and so on.
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.