title: Java not compiling changes in my code
body: <p>I have this problem with both Netbeans 8.0 and Eclipse.  In Eclipse when I can write a Java program and it will compile and run fine.  Then I can make a change to the source and when I run it again sometimes the old version of the code without the change in the one that is run.  If I hit run a second time the new version is run.</p>
  
  <p>In NetBeans I get a different error the second time I try to run updated code. "Could not find or load main class".  This happens sometimes when I make changes to the source.  I think this might have a similar cause to what is going on in Eclipse.  In both cases the problems are intermittent and difficult to reliably reproduce.</p>
  
  <p>I am using JDK 7 but before I was using JDK 8 and had the same problem.</p>