Play framework 1.x with java 8

2020-07-16 09:08发布

How can I make play framework 1.x work with Java 8?

Play framework version 1.2.5.3

Java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Server VM (build 25.0-b70, mixed mode)

I have an error:

play.exceptions.CompilationException: java.util.stream.Collectors cannot be resolved at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246) at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:676) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:520) at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282) at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:281) at play.classloading.ApplicationClassloader.detectChanges(ApplicationClassloader.java:324) at play.Play.detectChanges(Play.java:625) at play.Invoker$Invocation.init(Invoker.java:198) at Invocation.HTTP Request(Play!)

1条回答
霸刀☆藐视天下
2楼-- · 2020-07-16 09:50
登录 后发表回答