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

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

问题描述

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

How can I get Java 8 to work with Eclipse?

我已遵循本指南,但没有用.我也看过Eclipse Java 8 wiki 页面,但他们没有解释如何处理检出的 git存储库.

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.

推荐答案

对于 Kepler SR2 (4.3.2) 需要安装功能补丁才能获得 JAVA 8 支持.请按照以下步骤操作:

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

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

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

在使用"字段中输入以下 URL:
http://download.eclipse.org/eclipse/updates/4.3-P-builds/

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

按回车"

来源:链接

@伊丽莎白

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

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

  • 右键单击包资源管理器中的项目
  • 选择BuildPath,然后选择Configure Builpath
  • 从弹出的属性窗口中选择标签
  • 选择当前的 JRE 系统库
  • 点击删除按钮
  • 点击添加图书馆按钮
  • 选择JRE 系统库
  • 在那里,您将能够使用 3 种不同的方法添加所需的 JRE/JDK 版本.
  • 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.

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

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.

来源:链接

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

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