play2をherokuで動かす

remote:        [error] error while loading CharSequence, class file '/tmp/scala_buildpack_build_dir/.jdk/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
remote:        [error] (bad constant pool tag 18 at byte 10)
remote:        [error] error while loading Comparator, class file '/tmp/scala_buildpack_build_dir/.jdk/jre/lib/rt.jar(java/util/Comparator.class)' is broken
remote:        [error] (bad constant pool tag 18 at byte 20)
remote:        [error] two errors found
remote:        [error] (compile:compile) Compilation failed

こんなエラーが出てて意味がわからなかった。

heroku createのときにオプションをつけたら解決。

heroku create --stack cedar

 以下のサイトを参考にしました。

http://takashabe.hatenablog.com/entry/2012/11/13/023125