title: Class not found error in Netbeans
body: <p>I am using Netbeans from many days. But suddenly it started 
  giving me following errors for simple hello programs.</p>
  
  <pre><code> java.lang.NoClassDefFoundError: newr
   Caused by: java.lang.ClassNotFoundException: newr
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  Exception in thread "main" Java Result: 1 
  BUILD SUCCESSFUL (total time: 3 seconds)
  </code></pre>
  
  <p>here it is</p>
  
  <p>My prog is simple hello program</p>
  
  <pre><code>public class newr {
  public static void main(String argv[]){
      System.out.println("hello");
  }
  }
  </code></pre>
  
  <p>It happens very very oftentimes with me. I had tried to uninstall and again install it but this doesn't resolve my problem. I also tried to delete .netbeans folder that contain net bean's cache. But i have to delete this .netbeans folder every times it gives me such errors. Is there any way to permanently fix the error? I am tired of deleting the cache and uninstalling netbeans please help me....</p>