Hi
I am ussing oracle BD 11g with netbeans. I hav downloaded ojdbc6.jar and added to the drivers list of netbeans but when I try to load driver via the below code it return classnotfound exception...plz help



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package newpackage;

import java.sql.*;


/**
*
* @author admin
*/
public class dbcont {

public static void main(String args[]){

try{
String driverName="oracle.jdbc.OracleDriver";
Class.forName("oracle.jdbc.OracleDriver");

String serverName="localhost";
String portNumber = "1521";
String sid = "orcl";

String url = "jdbc:oracle:thin:@"+serverName+":"+portNumber+":" +sid;
String username="admin";
String password="Likethi5";

Connection con = DriverManager.getConnection(url, username, password);

Statement stmt = con.createStatement();

stmt.executeUpdate("create table emp(empid varchar2(20),name varchar2(30));");

}
/* catch(ClassNotFoundException e)
{
e.printStackTrace();
}*/
catch(SQLException e)
{
e.printStackTrace();
}
catch(Exception err)
{
err.printStackTrace();
}
finally
{

}
}
}


ERRORS:

java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at newpackage.dbcont.main(dbcont.java:21)
BUILD SUCCESSFUL (total time: 1 second)