title: java.lang.NoClassDefFoundError: javax/persistence/Persistence
body: <p>i'm using Netbeans 6.8 and build simple Maven web application project.</p>
  
  <p>create Entity and main file for persist Entity [also create persist unit] and use EclipsLink.</p>
  
  <p>but when i run main file  get this error :</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Persistence
          at Main.main(Main.java:34)
  Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
          ... 1 more
  </code></pre>
  
  <p>in netbeans projects window and in my project libraries folder only add this package :</p>
  
  <p>javaee-web-api-6.0.jar [provided]</p>
  
  <p>please help me for solve this Error</p>
  
  <p>thanks</p>