Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: jdbc thin client driver

RE: jdbc thin client driver

From: Sam P. Roberts (ZADCO ITIS) <roberts_at_zadco.co.ae>
Date: Fri, 20 Apr 2001 22:31:59 -0700
Message-ID: <F001.002EE7E1.20010420221523@fatcity.com>

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

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 Sat Apr 21 2001 - 00:31:59 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US