更新 java版本(1.8.0_66)
后不久java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
通过激活器创建新的Play-scala应用时,我一直收到以下错误!
Compiling 7 Scala sources and 1 Java source to /Users/Triller/Documents/HandsOn/Play/play-app/target/scala-2.11/classes...
application -
! @6oe8pd26a - Internal server error, for (GET) [/] ->
play.api.PlayException: Unexpected exception[The compilation failed without reporting any problem!]
at play.forkrun.protocol.Serializers$playExceptionPickler$.unpickle(Serializers.scala:165) ~[na:na]
at play.forkrun.protocol.Serializers$PlayRunsupportReloaderCompileFailureUnpickler$macro$56$2$.unpickle(Serializers.scala:175) ~[na:na]
at play.forkrun.protocol.Serializers$PlayRunsupportReloaderCompileResultUnpickler$macro$66$2$.unpickle(Serializers.scala:181) ~[na:na]
at scala.pickling.Unpickler$class.unpickleEntry(Pickler.scala:79) ~[na:na]
at play.forkrun.protocol.Serializers$PlayRunsupportReloaderCompileResultUnpickler$macro$66$2$.unpickleEntry(Serializers.scala:181) ~[na:na]
at scala.pickling.functions$.unpickle(functions.scala:11) ~[na:na]
at sbt.serialization.JsonValue$$anonfun$parse$1.apply(SerializedValue.scala:104) ~[na:na]
at scala.util.Try$.apply(Try.scala:191) ~[scala-library.jar:na]
at sbt.serialization.JsonValue.parse(SerializedValue.scala:104) ~[na:na]
at sbt.protocol.BuildValue.value(Values.scala:11) ~[na:na]
Caused by: java.lang.Exception: null
at sbt.compiler.javac.JavaCompilerAdapter.compileWithReporter(JavaCompilerAdapter.scala:35) ~[na:na]
at sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply$mcV$sp(AnalyzingJavaCompiler.scala:65) ~[na:na]
at sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65) ~[na:na]
at sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65) ~[na:na]
at sbt.compiler.javac.AnalyzingJavaCompiler.timed(AnalyzingJavaCompiler.scala:93) ~[na:na]
at sbt.compiler.javac.AnalyzingJavaCompiler.compile(AnalyzingJavaCompiler.scala:64) ~[na:na]
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:61) ~[na:na]
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61) ~[na:na]
at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61) ~[na:na]
at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:75) ~[na:na]
我不确定原因。我尝试重新安装playframework但没有运气。我在这里错过了什么吗?
答案 0 :(得分:1)
检查JAVA_HOME或java版本。如果您使用的是jre而不是JDK,则会发生这种情况。下载最新的Java并将JAVA_HOME导出到当前的java应该解决这个问题。