下了一个开源软件NADEEF,使用ant编译,出现以下错误,请高手指教
错误:
web:
[mkdir] Created dir: F:\study\06.ETL\NADEEF\NADEEF-master\out\bin
[javac] Compiling 17 source files to F:\study\06.ETL\NADEEF\NADEEF-master\out\production
[javac] F:\study\06.ETL\NADEEF\NADEEF-master\web\src\qa\qcri\nadeef\web\Dashboard.java:41: 错误: 需要')'
[javac] get("/", (request, response) -> {
[javac] ^
[javac] F:\study\06.ETL\NADEEF\NADEEF-master\web\src\qa\qcri\nadeef\web\Dashboard.java:41: 错误: 非法的表达式开始
[javac] get("/", (request, response) -> {
错误代码:
package qa.qcri.nadeef.web;
import com.google.common.base.Strings;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import qa.qcri.nadeef.core.datamodel.NadeefConfiguration;
import qa.qcri.nadeef.tools.Tracer;
import qa.qcri.nadeef.tools.sql.SQLDialect;
import qa.qcri.nadeef.web.rest.*;
import static spark.Spark.*;
/**
* Start class for launching dashboard.
*/
public final class Dashboard {
//<editor-fold desc="Where everything begins">
public static void main(String[] args) {
Bootstrap.start();
Tracer tracer = Tracer.getTracer(Dashboard.class);
String rootDir = System.getProperty("rootDir");
if (Strings.isNullOrEmpty(rootDir)) {
staticFileLocation("qa/qcri/nadeef/web/public");
} else {
externalStaticFileLocation(rootDir);
}
get("/", (request, response) -> { //////这是第41行,报错,这个是什么语法,怎么解决,谢谢!
response.redirect("/index.html");
return null;
});
------解决方案--------------------
get("/", (request, response) -> { 前几天论坛里面出现够这个问题-> { 好像是java8里面的新特性,楼主搜一下
Java 8 的新特性和改进总览