title: trying to connect to sql database and driver cannot be found
body: <p>i am using netbeans to write a java application. I need to connect to an sql database and i get this error:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</p>
  
  <p>I use maven project and I added the dependency : ojdbc14</p>
  
  <pre><code>  try {     //load database driver
              Class.forName("oracle.jdbc.driver.OracleDriver");
          } catch (ClassNotFoundException ex) {
              Logger.getLogger("Driver not found");
              System.out.println(ex);
              System.out.println("error");
          }
  </code></pre>
  
  <p>What can I do to fix this problem ? I am new to java and I do not know much</p>