title: JDBC Driver Loading error
body: <p>below is my simple program of JDBC Oracle Connectivity. Please see and tell me why could I possibly get the error of driver not loading. I have put <code>odbc14.jar</code> in libraries.</p>
  
  <pre><code>/*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  
  package databaseconnect;
  
  /**
   *
   * @author compaq
   */
  import java.sql.*;
  
  public class Education1 {
  
      public static void main(String[] args) {
  
          try{
              Class.forName("oracle:jdbc:driver:OracleDriver");
          }catch( Exception e ) {
        System.out.println("Failed to load Oracle driver.");
          }
  try{
              Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","system");
              Statement stmt=con.createStatement();
              stmt.executeUpdate("insert into Education(name,rollno) VALUES ('alankrit',1000)");
              System.out.println("Data inserted");
              con.close();
  
  
      }   catch(Exception e){
      //     System.out.println(e);
      }
  
      }
  
  }
  </code></pre>