# Deploy Java Web Application on Heroku PaaS Cloud

This document describes the steps to deploy your maven web application created in Eclipse to Heroku Platform as a Service cloud. Make sure before you start following prerequisites are configured correctly.

1\. A Java JDK is installed.

2\. Maven 3 is installed.(Find the latest version athttp://maven.apache.org/download.cgi)

3\. An Eclipse IDE is installed (Find the latest version athttps://www.eclipse.org/downloads/)

4\. Now go to Heroku cloud site and sign up for a free account. https://signup.heroku.com/login A verification link will be sent to your email account. Click the link to verify your email and then set the password for your account.

5\. Download the Heroku cloud command line interface and install. https://devcenter.heroku.com/articles/heroku-cli#download-and-install

6\. Git or Gitbash for Windows Installed.

7\. Now make sure that from command line the mvn command and heroku commnad is executing and you are not getting command not found error. In case you get command not found error make sure you update the PATH variable to add path for these binaries.

On Windows openfile explorer--&gt; right click on “This PC” --&gt; ClickProperties--&gt; Click “Advanced system settings” --&gt; Then if prompted for password. Provide administrator password ---&gt; then on the screen that opens Click “Environment Variable” button --&gt; In the system variables window (Bottom pane of the Window) Click “Path” --&gt; Then Click “Edit” --&gt; In the new Window that opens Click “New” --&gt;and add the path that points to maven
