Class [org.apache.derby.jdbc.ClientDriver] not found. When trying to connect to db
I have set up a project in Netbeans, created a script, made a new database with javadb. I can connect to it by gui - display the tables contents etc, but when i run an application with: EntityManager em = Persistence.createEntityManagerFactory("lab5PU").createEntityManager(); i get this quite long exception: [EL Info]: 2013-04-05 21:40:45.554--ServerSession(1198260109)--EclipseLink, version: Eclipse Persistence Services - 2.3.0.v20110604-r9504 [EL Severe]: 2013-04-05 21:40:45.574--ServerSession(1198260109)--Local Exception Stack: Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3