noclassdeffound: javax.persistence.Persistence
--------------------------------

package JVA.intro;
import javax.persistence.*;

public class Main {
public static void main(String[] args) {
System.out.println("\n\n\n\nCreating Book entity...................\n\n\n\n");
Book book= new Book();
System.out.println("*****Creating entityManagerFactory*****\n\n\n\n");
EntityManagerFactory emf= Persistence.createEntityManagerFactory("chapter06P U");
EntityManager em= emf.createEntityManager();
EntityTransaction tx= em.getTransaction();
tx.begin();
em.persist(book);
tx.commit();
em.close();
emf.close();
System.out.println("Terminating Program....................\n\n\n\n");
}
Main(){}
}

---------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="chapter06PU" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceP rovider</provider>
<class>JVA.intro.Book</class>

<propeties>
<property name="eclipselink.target-database" value="DERBY"/>
<property name="eclipselink.jdbc.river" value="org.apache.derby.jdbc.Clientdriver"/>
<property name="eclipselink.jdbc.url" value="jdbc:derby://localhost:1527/chapter06DB; create=true"/>
<property name="eclipselink.jdbc.user" value="APP"/>
<property name="eclipselink.jdbc.password" value="APP"/>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="eclipselink.loggin.level" value="INFO"/>
</properties>

</persistence