aspose file tools*
The moose likes Object Relational Mapping and the fly likes class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "class not found" Watch "class not found" New topic
Author

class not found

Ryan Jorge
Greenhorn

Joined: Jun 23, 2012
Posts: 3
I am writing a small JPA class which throw an error saying at runtime a Class [oracle.jdbc.OracleDriver] not found.
where can I find the class and how to do installation?

reference:






[Added code tags - see UseCodeTags for details]
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
You need to add the Oracle JDBC driver to your classpath. (ojdbc.jar)

You can get the Oracle JDBC driver from an Oracle database installation or from OTN.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
Ryan Jorge
Greenhorn

Joined: Jun 23, 2012
Posts: 3
I just put the ojdbc6.jar in /WEB-INF/lib and it prompt me another error saying can't get connection from the driver.
I don't know how to add to classpath. could you show me more detail?
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Hello, Ryan,
Are you using some kind of IDE like eclipse or Intellij ? Please specify.
BR,


Prithvi,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
What is the "other error"?
Ryan Jorge
Greenhorn

Joined: Jun 23, 2012
Posts: 3
I m using eclipse.
figuring out that many typo in persistence.xml, I've fixed all error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class not found
 
Similar Threads
deployment error ,jpa(wl10.3.3)
Data Not inserting into Database JPA+Hibernate
Simple JPA pogram using EclipseLink
javax.persistence.PersistenceException
HibernateException: Hibernate Dialect must be explicitly set