2014-04-08 8 views
5

Wie kann ich play framework 1.x arbeiten mit Java 8?Play Framework 1.x mit 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) 

Ich habe einen Fehler:

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!)

+0

Der Java Stream API wurde neu erstellt. Sehr wenige Chancen, Play wird mit Java 8 out of the box funktionieren. Wahrscheinlich auf das nächste Update warten. –

+0

Ich hoffe, es wird bald – Artem

+1

Spiel ist mit der Eclipse-Compiler unter der Haube 'org.eclipse.jdt.internal.compiler.Compiler', die eine andere Version und vielleicht jdk zu Ihrem Haupt 1.8 Installation hat. – aepurniet

Antwort