Programming Java 8 in Eclipse
The development of Eclipse support for Java 8 is ongoing in a branch (http://wiki.eclipse.org/JDT_Core/Java8).
To try out the current Eclipse support for Java 8, I did the following:
- I installed a build of JDK 8 (This step is optional).
- I checked out branch of .
BETA_JAVA8
git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git
- I imported the checked out projects in an instance of Eclipse Juno SR1 (Build ID: 20120920-0800).
- I ran a new instance of Eclipse from my running Eclipse.
To use the new syntax available in Java 8, Eclipse said that I have to set the compliance level of my code to 1.8. To set the compliance level, I have to set the execution environment to . This execution environment was not available at .JavaSE-1.8
Windows -> Preferences -> Java -> Installed JREs -> Execution Environments
How can I set the execution environment to ?JavaSE-1.8
The following summarizes some of my attempts to install the execution environment:
- I followed the wiki instructions looking for a description of at the update site http://download.eclipse.org/eclipse/updates/4.2. But, the definition of the execution environment wasn't there.
JavaSE-1.8
- I looked for the profile in the git repository of rt.equinox.framework, but, it wasn't there.
JavaSE-1.8