title: Eclipse JDT core Java runtime error - java.lang.NoSuchMethodError
body: <p>I could not find any helping document regarding this error hence I am posting this question.</p>
  <p>I am trying to use locally built Eclipse JDT core jar in my project. I followed the flowing steps.</p>
  <ol>
  <li>Created an eclipse workspace as described in <a href="https://wiki.eclipse.org/Eclipse_Platform_SDK_Provisioning" rel="nofollow noreferrer">Link</a></li>
  <li>Built <code>eclipse.jdt.core</code> using the <code>mvn -P build-individual-bundles package</code></li>
  <li>Added the resulting <strong>jar</strong> file that is created in the <code>target</code> folder to my project (i.e., <code>project A</code>) as a maven dependency.</li>
  </ol>
  <p>After the above steps, I could successfully compile project A and now it gives me the following runtime error.</p>
  <pre><code>Exception in thread &quot;pool-2-thread-1&quot; java.lang.NoSuchMethodError: org.eclipse.core.runtime.SubMonitor.split(I)Lorg/eclipse/core/runtime/SubMonitor;
      at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
      at utils.JavaASTUtil.parseSource(JavaASTUtil.java:87)
      at change.CFile.&lt;init&gt;(CFile.java:32)
      at change.RevisionAnalyzer.buildGitModifiedFiles(RevisionAnalyzer.java:310)
      at change.RevisionAnalyzer.analyzeGit(RevisionAnalyzer.java:130)
      at change.ChangeAnalyzer.analyzeGit(ChangeAnalyzer.java:243)
      at change.ChangeAnalyzer.analyzeGit(ChangeAnalyzer.java:228)
      at main.MainChangeAnalyzer$2.run(MainChangeAnalyzer.java:99)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:834)
  </code></pre>
  <p>pom.xml of the project is given below</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;AtomicASTChangeMining&lt;/groupId&gt;
      &lt;artifactId&gt;AtomicASTChangeMining&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;local-maven-repo&lt;/id&gt;
              &lt;url&gt;file:///Users/xx/Documents/Research_Topic_2/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;build&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;11&lt;/source&gt;
                      &lt;target&gt;11&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;11&lt;/source&gt;
                      &lt;target&gt;11&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;!--Below is the locally built jdt core jar --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jdt&lt;/groupId&gt;
              &lt;artifactId&gt;org.eclipse.jdt.core&lt;/artifactId&gt;
              &lt;version&gt;3.23.0-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.core&lt;/groupId&gt;
              &lt;artifactId&gt;runtime&lt;/artifactId&gt;
              &lt;version&gt;3.10.0-v20140318-2214&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.birt.runtime&lt;/groupId&gt;
              &lt;artifactId&gt;org.eclipse.core.resources&lt;/artifactId&gt;
              &lt;version&gt;3.10.0.v20150423-0755&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse&lt;/groupId&gt;
              &lt;artifactId&gt;osgi&lt;/artifactId&gt;
              &lt;version&gt;3.10.0-v20140606-1445&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  <p>Does anybody have any idea about the runtime error?
  Thanks a lot!</p>