在遊戲2.0中構建應用程序,當我在本地運行應用程序時使用play run
它運行良好,但是當我嘗試上傳到heroku時git push heroku master
開始上傳,但一段時間後它總是結束這些錯誤:推送我的資料庫到heroku失敗
[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 [email protected]:dry-thicket-4545.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:dry-thicket-4545.git'
我確信,我的Heroku,工具區是上最新,試圖重新初始化完全混帳並創建一個新的Heroku應用程序。但沒有任何進一步幫助我
你在本地使用哪個JDK版本? –
您應該使用Heroku處理支持請求。 –
@nico_ekito,1.7我認爲,這確實很重要嗎?但我確信我將heroku配置爲相同的版本。 – Tim