Eclipse + Java 8支持? [英] Eclipse + Java 8 support?

查看:170
本文介绍了Eclipse + Java 8支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让Java 8与Eclipse一起工作?



我遵循本指南,但无效。我也看过 Eclipse Java 8 wiki页面,但是他们没有解释如何处理签出的git库。

解决方案

对于开普勒SR2(4.3.2),需要安装功能补丁才能获得JAVA 8的支持。请执行以下步骤:




  • Eclipse - 帮助(菜单)>安装新软件...


  • 在使用字段中输入以下URL:

    http://download.eclipse.org/eclipse/updates/4.3-P-builds/


  • 按'输入'


  • 选择类别Eclipse Java 8支持(Kepler SR2)

  • 点击下一步

  • 点击下一步

  • 接受许可

  • 点击完成


  • 在问到问题时重新启动Eclipse



来源:链接



@Elisabeth



为了在BuildPath上具有所需的JRE / JDK,请按照以下步骤操作。




  • 从包资源管理器中点击项目

  • 选择 BuildP ath ,然后选择配置Builpath

  • 从弹出的属性窗口
  • $ b中选择库> $ b
  • 选择当前的 JRE系统库

  • 点击删除按钮

  • 点击添加库按钮

  • 选择 JRE系统库

  • 您将可以使用3种不同的方法添加所需的JRE / JDK版本。



如果您没有找到所需的JRE / JDK版本在这3个选项中,那么你必须先安装它。以下链接可以帮助您详细了解屏幕截图以进行相同操作。希望它有帮助。



source:链接


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.

解决方案

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

这篇关于Eclipse + Java 8支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆