| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
|  |  | |||
Home -> Community -> Mailing Lists -> Oracle-L -> jdbc thin client driver
I am trying to test a jdbc application using Oracle' thin client driver from AIX. The database that I am trying to go against is 8.1.6 server on an NT box. I keep getting the following error on compile:
OracleConn.java:10: Class oracle.jdbc.driver.OracleDriver not found in type
declaration.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                                                   ^
The CLASSPATH does contain classes111.zip. I have also tried using
classes12.zip in the CLASSPATH. Each time I get the same error.
This is the piece of code I'm trying to compile:
public OracleConn()
{   try
 {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
  }
 catch ( Exception e)
 {  System.out.println("Error Loading driver");
    e.printStackTrace();
    }
}
public Connection getOracleConnection(String dbname, String userid, String
pwd)
{
 String url = "jdbc:oracle:thin_at_oraserver.xxxx.com:1521:" + dbname;
 Connection myConn = null;
 try
 {
  myConn = DriverManager.getConnection(url, userid, pwd);
  System.out.println("Connection successful") ;
}
...........
What am I doing wrong????
Thanks,
Manas.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Manas Dasgupta INET: manas.dasgupta_at_pfsfhq.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Apr 20 2001 - 12:09:13 CDT
|  |  |