https://devcenter.heroku.com/articles/getting-started-with-java

getting started with Java project deployment in Heroku