title: Run local Java Heroku
body: <p>I'm going through the Heroku Getting Started for Java, but I'm having trouble running the example app locally. </p>
  
  <p><a href="https://devcenter.heroku.com/articles/getting-started-with-java#run-the-app-locally" rel="nofollow">https://devcenter.heroku.com/articles/getting-started-with-java#run-the-app-locally</a>
  <a href="https://devcenter.heroku.com/articles/getting-started-with-java#define-a-procfile" rel="nofollow">https://devcenter.heroku.com/articles/getting-started-with-java#define-a-procfile</a></p>
  
  <p>After I run it, I get the "starting web.1 on port 5000", but when I open localhost:5000, it just gives me "This webpage is not available."</p>
  
  <p>Here is the output from CLI</p>
  
  <pre><code>$ heroku local web -f Procfile.windows
  forego | starting web.1 on port 5000
  web.1  | Usage: java [-options] class [args...]
  web.1  | in the version search
  web.1  |            show splash screen with specified image
  web.1  |
  </code></pre>
  
  <p>Let me know if you need more information.</p>
  
  <p>UPDATE:  So I actually ran the command on my own, when I realized, that's all that Procfile does, and the last line I get is</p>
  
  <pre><code>sh.exe": target\dependency\*: No such file or directory
  </code></pre>
  
  <p>When this is obviously is a target\dependency made from mvn clean install?
  What am I typing wrong?</p>
  
  <pre><code>$ java -cp target\classes;"target\dependency\*" Main
  </code></pre>