Manas,

Recheck your classpath and the versions of your classes file(i.e. correct
jdk / classes compatibility). This error is clear, it can't find the JDBC
drivers.

Sam

-----Original Message-----
Sent: Friday, April 20, 2001 10:01 PM
To: Multiple recipients of list ORACLE-L


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:[EMAIL PROTECTED]: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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Sam P. Roberts (ZADCO ITIS)
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to