title: Junit 5 - java.lang.NoSuchMethodError: org.junit.platform.launcher.Launcher.execute
body: <p>Below is my POM file. My question is about resolving NoSuchMethodError.</p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.junit/junit5-engine --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
              &lt;version&gt;5.0.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.junit.platform/junit-platform-commons --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
              &lt;artifactId&gt;junit-platform-commons&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
              &lt;artifactId&gt;junit-platform-launcher&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
              &lt;artifactId&gt;junit-platform-engine&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!--&lt;dependency&gt;--&gt;
              &lt;!--&lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;--&gt;
              &lt;!--&lt;artifactId&gt;junit-jupiter&lt;/artifactId&gt;--&gt;
              &lt;!--&lt;version&gt;5.5.2&lt;/version&gt;--&gt;
              &lt;!--&lt;scope&gt;test&lt;/scope&gt;--&gt;
          &lt;!--&lt;/dependency&gt;--&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>I referred the below link for my POM:
  <a href="https://stackoverflow.com/questions/50323335/java-lang-nosuchmethoderror-org-junit-platform-launcher-launcher-execute">java.lang.NoSuchMethodError: org.junit.platform.launcher.Launcher.execute</a> 
  and also referred other stackoverflow suggestions - baeldung but didn't work. I am not using Spring, simple java program.</p>
  
  <p>Thanks</p>