Add Java 8 support to Eclipse Kepler
Join the DZone community and get the full member experience.
Join For Freewant to add java 8 support to kepler?
java 8 has not yet landed in our standard download packages . but you can add it to your existing eclipse kepler package. i’ve got three different eclipse installations running java 8:
- a brand new kepler sr2 installation of the eclipse ide for java developers;
- a slightly used kepler sr1 installation of the eclipse for rcp/rap developers (with lots of other features already added); and
- a nightly build (dated march 24/2014) of eclipse 4.4 sdk.
the jdt team recommends that you start from kepler sr2, the second and final service release for kepler (but using the exact same steps, i’ve installed it into kepler sr1 and sr2 packages). there are some detailed instructions for adding java 8 support by installing a feature patch in the eclipsepedia wiki .
the short version is this:
- from kepler sr2, use the “help > install new software…” menu option to open the “available software” dialog;
-
enter
http://download.eclipse.org/eclipse/updates/4.3-p-builds/
into the “work with” field (highlighted below); - put a checkbox next to “eclipse java 8 support (for kepler sr2)” (highlighted below);
- click “next”, click “next”, read and accept the license, and click “finish”
- watch the pretty progress bar move relatively quickly across the bottom of the window; and
- restart eclipse when prompted.
voila! support for java 8 is installed.
if you’ve already got the java 8 jdk installed and the corresponding jre is the default on your system, you’re done.
if you’re not quite ready to make the leap to a java 8 jre, there’s still hope (my system is still configured with java 7 as the default).
- install the java 8 jdk;
- open the eclipse preferences, and navigate to “java > installed jres”;
- click “add…”;
- select “standard vm”, click “next”;
- enter the path to the java 8 jre (note that this varies depending on platform, and how you obtain and install the bits);
- click “finish”.
before closing the preferences window, you can set your workspace preference to use the newly-installed java 8 jre. or, if you’re just planning to experiment with java 8 for a while, you can configure this on a project-by-project basis.
it’s probably better to do this on the project as this will become a project setting that will follow the project into your version control system.
next step… learn how wrong my initial impressions of java 8 were (hint: it’s far better).
Published at DZone with permission of Wayne Beaton, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments