title: Hibernate exception: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
body: <p>My Java project when I run it on local server (localhost:8080) is throwing an error: 
  <strong>java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver</strong></p>
  
  <p>This error is thrown when Hibernate is trying to connect to Oracle database on</p>
  
  <pre><code> session = PersistenceManager.sessionFactory().openSession();
  </code></pre>
  
  <p>When I deploy app to Production or Test server there is no problem.
  In order to troubleshoot I need to make it work on my local machine. <strong>What am I missing?</strong></p>
  
  <p>First I thought that Oracle drivers are missing so I downloaded <strong>classes12.jar</strong> and added it to <strong>Java Build Path > Libraries</strong>. That didn't help. I am still getting same error.</p>
  
  <p>Thanks</p>