Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Kepler SR2 + Java 8

According to this article It seems to be easy to add Java 8 feature to Eclipse. Somehow it doesn't work for me because I can't use the new syntax and I can't choose enviroment version 1.8 although JDK1.8 is installed and picked in eclipse' settings. There are no errors while installing feature or restarting eclipse.

Platform: Win7 x64

Eclipse version: Kepler SR2 Build 20140224-0627

Any Ideas?

like image 585
Danny Lo Avatar asked Apr 14 '26 14:04

Danny Lo


1 Answers

I have created some kind of a graphical tutorial.

Add Java 8 to Eclipse

  • Install Eclipse Kepler 4.3.2
  • Eclipse | Help | Install New Software...
  • http://download.eclipse.org/eclipse/updates/4.3-P-builds/

  • Alternatively, install Eclipse Luna 4.4 M7 and you do not have to install the Eclipse Kepler Java 8 patch.

enter image description here

Before the next step, if you still do not have JDK1.8.0 installed, go to Add... button and add your Java 8 JDK to your Eclipse. You may ommit the step of changing the Javadoc location if you have not downloaded it to your local disk, it is just for faster access to Javadoc.

Add Java 8 SDK to Installed JREs

  • Eclipse | Window | Preferences

enter image description here

Add Java 8 Support to your Project

  • Eclipse | Project | Properties

enter image description here

like image 63
Honza Zidek Avatar answered Apr 17 '26 04:04

Honza Zidek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!