title: Pushing my repository (JAVA app) to heroku fails
body: <p>Im building an app in playframework 2.2., and when I run the app locally with play run it runs fine but when I try to upload to heroku with <strong>git push heroku master</strong> it starts uploading fine but after a while it always ends with these errors:</p>
  
  <pre><code>       [info] downloading http://s3pository.heroku.com/maven-central/org/par
  ed/parboiled-core/1.1.5/parboiled-core-1.1.5.jar ...
         [info]   [SUCCESSFUL ] org.parboiled#parboiled-core;1.1.5!parboiled-c
  jar(bundle) (245ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/ow2
  /asm/4.1/asm-4.1.jar ...
         [info]   [SUCCESSFUL ] org.ow2.asm#asm;4.1!asm.jar (198ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/ow2
  /asm-tree/4.1/asm-tree-4.1.jar ...
         [info]   [SUCCESSFUL ] org.ow2.asm#asm-tree;4.1!asm-tree.jar (109ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/ow2
  /asm-analysis/4.1/asm-analysis-4.1.jar ...
         [info]   [SUCCESSFUL ] org.ow2.asm#asm-analysis;4.1!asm-analysis.jar
  ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/ow2
  /asm-util/4.1/asm-util-4.1.jar ...
         [info]   [SUCCESSFUL ] org.ow2.asm#asm-util;4.1!asm-util.jar (354ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/sca
  ang/scala-compiler/2.10.3/scala-compiler-2.10.3.jar ...
         [info]   [SUCCESSFUL ] org.scala-lang#scala-compiler;2.10.3!scala-com
  r.jar (8070ms)
         [info] downloading http://s3pository.heroku.com/maven-central/org/sca
  ang/jline/2.10.3/jline-2.10.3.jar ...
         [info]   [SUCCESSFUL ] org.scala-lang#jline;2.10.3!jline.jar (307ms)
         [info] Done updating.
         [info] Compiling 5 Scala sources and 11 Java sources to /tmp/scala_bu
  ack_build_dir/target/scala-2.10/classes...
         [info] 'compiler-interface' not yet compiled for Scala 2.10.3. Compil
  ..
         [info]   Compilation completed in 23.023 s
         [error] /tmp/scala_buildpack_build_dir/app/utils/DatabaseConnection.j
  45: illegal start of type
         [error]         List&lt;String&gt; results = new ArrayList&lt;&gt;();
         [error]                                              ^
         [error] 1 error
         [error] (compile:compile) javac returned nonzero exit code
         [error] Total time: 387 s, completed Mar 25, 2014 4:20:51 PM
   !     Failed to build app with sbt
  
   !     Push rejected, failed to compile Play 2.x - Java app
  
  To git@heroku.com:glacial-plateau-2895.git
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  error: failed to push some refs to 'git@heroku.com:glacial-plateau-2895.git'
  </code></pre>
  
  <p>Can someone help me?
  I've searched but i didn't find similar problems that could help me.</p>
  
  <p>Thanks in advance. </p>