Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

class not found

 
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]
 
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?
 
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic