title: How to load JDBC driver for Oracle SQL Developer
body: <p>My professor asks us to make a <strong>java</strong> program that asks the user to input the data and the data inputted should automatically be inserted into a table in <strong>sql developer</strong>.</p>
  
  <p>I have a background in Java and database but i'm not familiar with creating JDBC applications.</p>
  
  <p>I searched a tutorial online and it said that i need to register the JDBC driver first. I ran the code in my compiler but it outputs <code>Error: unable to load driver class!</code>. </p>
  
  <p>What should i do for it to register? </p>
  
  <p>I still don't know the concept of <code>Class.forName();</code></p>
  
  <p>Secondly, it errors a <code>SQLException: No suitable drivers found</code></p>
  
  <p>I don't know what's wrong in my code but the connection details in my SQL developer is this: </p>
  
  <blockquote>
    <p>Connection name: mariel
    <br> Connection details: mariel@//localhost:1521/XEXDB</p>
  </blockquote>
  
  <p>The code:</p>
  
  <pre><code>import java.sql.* ; 
  public class employeeMode{
      public static void main(String args[]) throws SQLException{
          String URL = "jdbc:oracle:thin:@localhost:1521:XEXDB";
          String USER = "mariel";
          String PASS = "1234";
          Connection conn = DriverManager.getConnection(URL, USER, PASS);
  
          try {
             Class.forName("oracle.jdbc.driver.OracleDriver");
          }
          catch(ClassNotFoundException ex) {
             System.out.println("Error: unable to load driver class!");
             System.exit(1);
          }
      }
  }
  </code></pre>
  
  <p>EDIT:<br>
  I fixed it! Thank you everyone! here's the working code:</p>
  
  <pre><code>import java.sql.* ; 
  public class employeeMode{
      public static void main(String args[]) throws SQLException{
          String URL = "jdbc:oracle:thin:mariel@//localhost:1521/XEXDB";
          String USER = "mariel";
          String PASS = "1234";
  
  
          try {
                Class.forName("oracle.jdbc.driver.OracleDriver");
                Connection conn = DriverManager.getConnection(URL, USER, PASS);
              }
                catch(ClassNotFoundException ex) {
                System.out.println("Error: unable to load driver class!");
                 System.exit(1);
          }
      }
  }
  </code></pre>