title: Error: Could not find or load main class/ Heroku Java Telegram Bot
body: <p>I wanted to deploy my the first Telegram Bot (Java+Spring) to Heroku, but i got &quot;Error: Could not find or load main class SV.TheFirstAid.TheFirstAidApplication&quot;. I'am newcomer in programming, so i need your help. Thank you!</p>
  <p>There`s my Procfile</p>
  <p>worker: sh target/bin/TheFirstAid</p>
  <p>And pom.xml</p>
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.telegram&lt;/groupId&gt;
          &lt;artifactId&gt;telegrambots-spring-boot-starter&lt;/artifactId&gt;
          &lt;version&gt;5.7.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;appassembler-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;assembleDirectory&gt;target&lt;/assembleDirectory&gt;
                  &lt;programs&gt;
                      &lt;program&gt;
                          &lt;mainClass&gt;SV.TheFirstAid.TheFirstAidApplication&lt;/mainClass&gt;
                          &lt;name&gt;TheFirstAid&lt;/name&gt;
                      &lt;/program&gt;
                  &lt;/programs&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;assemble&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  [project structure][1]