1

我在 play 2.0 中构建了一个应用程序,当我在本地运行应用程序时play run它运行良好,但是当我尝试上传到 heroku 时,git push heroku master它开始正常上传,但过了一段时间它总是以这些错误结束:

 [info] Compiling 10 Scala sources and 6 Java sources to /tmp/build_26zvdeyfp5qfp/target/scala-2.9.1/classes...
       [error] error while loading MapStream, class file '/tmp/build_26zvdeyfp5qfp/.jdk/jre/lib/rt.jar(java/lang/MapStream.class)' is broken
       [error] (bad constant pool tag 18 at byte 43)
       [error] one error found
       [error] {file:/tmp/build_26zvdeyfp5qfp/}Workshop0182Host/compile:compile: Compilation failed
       [error] Total time: 20 s, completed Nov 17, 2012 11:08:23 AM
 !     Failed to build app with sbt
 !     Heroku push rejected, failed to compile Play 2.0 - java app

To git@heroku.com:dry-thicket-4545.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:dry-thicket-4545.git'

我确保我的 heroku-toolbelt 是最新的,尝试完全重新初始化 git 并创建了一个新的 heroku 应用程序。但这些都没有进一步帮助我

4

1 回答 1

0

显然在 heroku 中使用 JDK 1.8 会出现这个问题。

于 2012-11-18T19:11:08.940 回答