Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
374 views
in Technique[技术] by (71.8m points)

Eclipse + Java 8 support?

How can I get Java 8 to work with Eclipse?

I have followed this guide but doesn't work. I've also seen the Eclipse Java 8 wiki page, but they don't explain what to do with the checked out git repositories.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For Kepler SR2 (4.3.2) a feature patch needs to be installed in order to get JAVA 8 support. Follow these steps:

  • Eclipse - Help (MENU) > Install New Software...

  • enter the following URL into the 'Work with' field:
    http://download.eclipse.org/eclipse/updates/4.3-P-builds/

  • press 'Enter'

  • select category 'Eclipse Java 8 Support (for Kepler SR2)'
  • click 'Next'
  • click 'Next'
  • accept the license
  • click 'Finish'

  • restart Eclipse when asked

source: link

@Elisabeth

In order to have the desired JRE/ JDK on BuildPath, follow these steps.

  • Right click on Project from Package Explorer
  • Select BuildPath and then select Configure Builpath
  • Select Libraries Tab from the popped up Properties window
  • Select the current JRE System Library
  • Click Remove button
  • Click on Add Library button
  • Select JRE System Library
  • There you will be able to add your desired JRE/ JDK version using 3 different methods.

If you don't find your desired version of JRE/ JDK there in those 3 options, then you will have to install that first. The following link helps you in detail with screen shots to do the same. Hope it helps.

source: link


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...