title: Java NoSuchMethodError when using the "Run Project" function in NetBeans
body: <p>I have a big Java project, where I added a new method (which involves many files in many packages).</p>
  
  <p>When I compile and run the project via javac in MingW, it works. So no problem with my code.</p>
  
  <p>When I use the "Clean and Built" function from NetBeans, I can run the generated class files or the generated jar file - works as well.</p>
  
  <p>But (!) if I use the "green arrow" button in NetBeans (standing for "Run Project"), I get the java.lang.NoSuchMethodError error. How can I fix this problem?
  I already deleted the NetBeans cache, but still the same.</p>
  
  <p>// UPDATE:
  I just found the reason: I accidentally included the git.jar as a library, so NetBeans used the methods in the jar file instead of my new methods.</p>