最新版eclipse支持java8
来源:互联网 发布:通用软件系统解决方案 编辑:程序博客网 时间:2024/05/22 09:01
eclipse SDK的最新版本 Version: Luna (4.4) Build id: I20140318-0830 下载链接:http://download.eclipse.org/eclipse/downloads/
1. 选择下图选定的版本:
2. 选择你系统对应的SDK,本人的是下图指定的版本,(X86系统)
3. 下载好之后,解压打开eclipse。要使用java8的特性,你还需要安装JDK1.8,这个就不详述了。然后eclipse里面需要配置一下。
在window--->preference里面设置如下图:
选择compiler设置编译器的版本,我们选择1.8的,如下图:
最后,设置JDK路径就行了。如下图,我的jdk1.8是安装在“D:\Program Files\Java\jdk1.8.0”
然后新建一个java 工程测试一下java 8 的lambda表达式==测试结果如下:
代码:
- public class Calculator {
- interface IntegerMath {
- int operation(int a,int b);
- }
- public int operateBinary(int a,int b, IntegerMath op) {
- return op.operation(a, b);
- }
- public staticvoid main(String... args) {
- Calculator myApp = new Calculator();
- IntegerMath addition = (a, b) -> a + b;
- IntegerMath subtraction = (a, b) -> a - b;
- System.out.println("40 + 2 = " +
- myApp.operateBinary(40,2, addition));
- System.out.println("20 - 10 = " +
- myApp.operateBinary(20,10, subtraction));
- }
- }
0 0
- 最新版eclipse支持java8
- 最新版eclipse支持java8
- eclipse支持java8
- Eclipse对java8的支持
- Eclipse 对 Java8 的支持
- Android 支持 Java8
- Android:使用eclipse luna搭建Android开发环境(支持java8)
- Eclipse最新版 Neon
- 最新版Eclipse个性化
- Eclipse官方下载最新版
- eclipse中使用java8
- eclipse使用java8
- eclipse中使用java8
- SELENIUM无法支持FIREFOX最新版
- 让Android studio支持java8
- Android studio2.2.3 支持Java8
- eclipse安装最新版SVN 1.8
- Eclipse 最新版ADT 版本问题
- Jaspersoft Studio 下载地址
- c#,php,java,pascal(delphi)学习过程比较:一,变量
- Qt——数组转换成字符串
- (菜鸟来动手)SpringMVC+Spring+Mybatis整合(第一天) 没有框架的时候
- jstl的formatNumber标签的四舍五入问题
- 最新版eclipse支持java8
- linux中fork()函数详解(原创!!实例讲解)
- Dynamo的实现技术和去中心化
- hdu1022
- 光流法 学习--optical flow
- 原java上传文件 以图片为例 纯Servlet实现
- spring源码之—Assert.notNull
- springMVC的工作原理
- hibernate查询条件表达式Restrictions