| 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: 550
|
|
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: 771
|
|
Hello, Ryan,
Are you using some kind of IDE like eclipse or Intellij ? Please specify.
BR,
|
Prithvi/Beenish,
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: 550
|
|
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.
|
 |
 |
|
|
subject: class not found
|
|
|