scala – 意外异常:新Play项目的编译失败
发布时间:2020-12-16 18:46:52 所属栏目:安全 来源:网络整理
导读:我在新创建的Play 2.1.3应用程序上收到此错误.我正在运行 Java 7u25.我创建了新的应用程序,并在应用程序目录中使用“play run”运行它. Unexpected exceptionCompilation failed without reporting any problem!?No source available,here is the exception
我在新创建的Play 2.1.3应用程序上收到此错误.我正在运行
Java 7u25.我创建了新的应用程序,并在应用程序目录中使用“play run”运行它.
Unexpected exception Compilation failed without reporting any problem!? No source available,here is the exception stack trace: ->sbt.compiler.CompileFailed: sbt.compiler.JavaCompiler$$anon$1.compile(JavaCompiler.scala:59) sbt.compiler.JavaTool$class.apply(JavaCompiler.scala:26) sbt.compiler.JavaCompiler$$anon$1.apply(JavaCompiler.scala:51) sbt.compiler.JavaCompiler$class.compile(JavaCompiler.scala:17) sbt.compiler.JavaCompiler$$anon$1.compile(JavaCompiler.scala:51) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(AggressiveCompile.scala:83) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(AggressiveCompile.scala:83) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(AggressiveCompile.scala:83) sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:101) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(AggressiveCompile.scala:82) sbt.classfile.Analyze$.apply(Analyze.scala:85) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1.apply$mcV$sp(AggressiveCompile.scala:81) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1.apply(AggressiveCompile.scala:81) sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileJava$1$1.apply(AggressiveCompile.scala:81) sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:101) sbt.compiler.AggressiveCompile$$anonfun$4.compileJava$1(AggressiveCompile.scala:80) sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:88) sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:60) sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:24) sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:22) sbt.inc.Incremental$.cycle(Incremental.scala:45) sbt.inc.Incremental$.compile(Incremental.scala:29) sbt.inc.IncrementalCompile$.apply(Compile.scala:20) sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:96) sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44) sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:31) sbt.Compiler$.apply(Compiler.scala:79) sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:572) sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:572) sbt.Scoped$$anonfun$hf2$1.apply(Structure.scala:578) sbt.Scoped$$anonfun$hf2$1.apply(Structure.scala:578) scala.Function1$$anonfun$compose$1.apply(Function1.scala:49) sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311) sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311) sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41) sbt.std.Transform$$anon$5.work(System.scala:71) sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232) sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232) sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) sbt.Execute.work(Execute.scala:238) sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232) sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232) sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) sbt.CompletionService$$anon$2.call(CompletionService.scala:30) java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) java.util.concurrent.FutureTask.run(Unknown Source) java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) java.util.concurrent.FutureTask$Sync.innerRun(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) 解决方法
你有什么理由不能使用JDK 1.8吗?还有哪个版本的SBT,以及你使用的scala版本?我有类似的事情发生并经历了一些失败(尽管通常有某种形式的错误报告).
我的解决方案是使用SBT版本0.13.15或1.0.3 您可以在/project/build.properties文件中指定SBT构建版本 sbt.version=0.13.15 也可以尝试使用scala版本2.11.8,我发现它非常坚如磐石! (您可以在build.sbt文件中设置此项) scalaVersion := 2.11.8 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
推荐文章
站长推荐
- 《AngularJS入门与进阶》图书简介
- Hacking with Angular:如何在深层嵌套ngRepeat中
- angularjs directive和component命名规则的坑
- 应当使用 SQLite 的五个原因
- scala – Slick:过滤所有joda DateTime日期等于
- angular2-forms – 控制角度材料的位置2自动完成
- Cxf开发webservice时遇到Can't find the req
- docker – elasticsearch的默认用户和密码是什
- 为什么Scala支持具有针对每个定义的表达式的多名
- angularjs – ng-include在angular js中的加载完
热点阅读