title: Oracle.jdbc.driver.OracleDriver() does not exist error
body: <p>i am trying to execute a sql command from a java program..i dont have any errors regarding this code..but i am facing connection refusals from the database..</p>
  
  <pre><code>import java.sql.*;
  public class DBCreateTable
  {
      public static void main(String args[]) throws Exception
      {
          DriverManager.registerDriver (new Oracle.jdbc.driver.OracleDriver());
          Connection con=DriverManager.getConnection(
                "jdbc:oracle:thin:@localhost:1521:xe","lms","abc");
          Statement stmt=con.CreateStatement();
          stmt.executeUpdate("create table emp(eno number(5),name varchar2(20))");
      }
  }
  </code></pre>
  
  <p>the errors encountered are:</p>
  
  <pre><code>Exception in thread "main" java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=185599488)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
          at oracle.jdbc.driver.OracleConnection.&lt;init&gt;(OracleConnection.java:404)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
  va:468)
          at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
          at java.sql.DriverManager.getConnection(DriverManager.java:579)
          at java.sql.DriverManager.getConnection(DriverManager.java:221)
          at DBCreateTable.main(DBCreateTable.java:7)
  </code></pre>
  
  <p>In my sql commands i have done the following..</p>
  
  <pre><code>    SQL&gt; connect system/tiger;
      SQL&gt; create user lms identified by abc;
      SQL&gt; grant connect,resource to lms;
  </code></pre>
  
  <p>and plz tell me what is scott tiger..i am messing a lot there..what users are there..what to unlock and how?? plz thanks..</p>