Configure Kepler Eclipse for Java 8 on Mac

This post shows how to add Java 8 support to eclipse Kepler. You can following the 3 simple steps to get Java 8 work on your existing Kepler on Mac.

1. Install Java 8

To download Java SE Development Kit 8, select the correct version for Mac here. It is a .dmg file which can be installed by double clicking.

2. Install Java 8 Support for Eclipse Kepler

Use the URL: http://download.eclipse.org/eclipse/updates/4.3-P-builds/ to install Java 8 Support, like the following:

install-java-8-support-for-kepler-eclipse

3. Config in Eclipse

Now go to eclipse -> Preference
eclipse-preference

Click -> Java -> Installed JREs
add-standard-vm

Select -> Add Standard VM
add-java-8-jre-eclipse

Here you need to give the home directory of Java 8. You can use the following command to figure out the default location where Java 8 is installed.

/usr/libexec/java_home -v 1.8

In my macbook, it is installed under: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

Now the environment is set up, you can read Java 8 Lambdas tutorial series to start programming lambdas.

Category >> Others  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
<pre><code> 
String foo = "bar";
</code></pre>