hai
i have a problem connecting to oracle 9i.
here is the code:-
import java.sql.*;
class TestThinApp {
public static void main (
String args[])
throws ClassNotFoundException, SQLException
{
Connection conn=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("connection success");
}catch(Exception e)
{
System.out.println("Inside class.forname ");
System.out.println(e);
}
try{
conn = DriverManager.getConnection(
"jdbc
racle:thin:@10.10.20.10:1521:ero","mahesh","mahesh");
}catch(Exception e)
{ System.out.println("Inside Drivermanager.getconn ");
System.out.println(e);
}
}
}
i am getting an error like:
Inside class.forname
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Inside Drivermanager.getconn
java.sql.SQLException: No suitable driver
plz solve this.
thanks and regards,
mahesh