Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found

 
Ryan Jorge
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ryan Jorge
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 774
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Ryan,
Are you using some kind of IDE like eclipse or Intellij ? Please specify.
BR,
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the "other error"?
 
Ryan Jorge
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m using eclipse.
figuring out that many typo in persistence.xml, I've fixed all error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic