title: Run Java spring application
body: <p>I would like run in shell spring-boot-admin-sample application: <a href="https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample/" rel="nofollow noreferrer">https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample/</a></p>
  
  <p>But when I compile and run application by commands:</p>
  
  <pre><code>mvn package 
  java -cp target/spring-boot-admin-sample.jar de.codecentric.boot.admin.SpringBootAdminApplication
  </code></pre>
  
  <p>I get Error: Could not find or load main class de.codecentric.boot.admin.SpringBootAdminApplication</p>
  
  <p>What I have to do for right run??</p>
  
  <p>(I am beginner in Spring and Java)</p>