Хочу запустить playframework 2.4.2 scala под windows 7 x64. Понимаю, что не лучший вариант, но всё равно.
Создал проект через
> activator new
.
Перешел в папку с проектом
> activator run
Пишет:
--- (Running the application, auto-reloading is enabled) ---
[info] p.a.l.c.ActorSystemProvider - Starting application default Akka sy
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
Перехожу на localhost:9000, и вылетает ошибка:
The compilation failed without reporting any problem!
sbt.compiler.CompileFailed:
sbt.compiler.javac.JavaCompilerAdapter.compileWithReporter(JavaCompilerAdapter.scala:35)
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply$mcV$sp(AnalyzingJavaCompiler.scala:65)
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)
sbt.compiler.javac.AnalyzingJavaCompiler$$anonfun$compile$1.apply(AnalyzingJavaCompiler.scala:65)
sbt.compiler.javac.AnalyzingJavaCompiler.timed(AnalyzingJavaCompiler.scala:93)
sbt.compiler.javac.AnalyzingJavaCompiler.compile(AnalyzingJavaCompiler.scala:64)
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:61)
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61)
sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileJava$1$1.apply(MixedAnalyzingCompiler.scala:61)
sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:75)
sbt.compiler.MixedAnalyzingCompiler.compileJava$1(MixedAnalyzingCompiler.scala:60)
sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:65)
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:62)
sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:61)
sbt.inc.Incremental$.manageClassfiles(Incremental.scala:89)
sbt.inc.Incremental$.compile(Incremental.scala:61)
sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
sbt.Compiler$.compile(Compiler.scala:128)
sbt.Compiler$.compile(Compiler.scala:114)
sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:814)
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:805)
sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:803)
scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
sbt.std.Transform$$anon$4.work(System.scala:63)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
sbt.Execute.work(Execute.scala:235)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Версия java:
> java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
> javac -version
javac 1.8.0_51
> scala -version
Scala code runner version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL
> scalac -version
Scala compiler version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL
Как скомпилировать и запустить проект?