The Artima Developer Community
Sponsored Link

Java Answers Forum
jdbc connectivity

3 replies on 1 page. Most recent reply: Jul 26, 2005 6:39 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
raghu kalyan

Posts: 4
Nickname: arkalyan
Registered: Jul, 2005

jdbc connectivity Posted: Jul 25, 2005 5:31 AM
Reply to this message Reply
Advertisement
hi


when i try to compile a java program to connect to oracle database using type III driver..i am getting an error stating ..

oracle.driver.OracleDriver() not found...
could u suggest me a solution for the same.
with regards ,
kalyan


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: jdbc connectivity Posted: Jul 25, 2005 6:13 AM
Reply to this message Reply
Google an Oracle JDBC driver (probably available
as a downloadable jar on the Oracle site),
download it and include it in your class path.

If you need help with that specify what OS
you're running and where your JAVA_HOME is
installed.

raghu kalyan

Posts: 4
Nickname: arkalyan
Registered: Jul, 2005

Re: jdbc connectivity Posted: Jul 26, 2005 5:45 AM
Reply to this message Reply
hi ,
thanks for u'r reply.....ia m using windows xp as the operating system. JAVA_HOME is given as d:\j2sdk1.4.2

and i have set the classpath as d:\oracle\0ra92\lib\classes111.jar,, even i am gettting the error
when i am using type 2 or 4 driver in the stand alone system...

"package oracle.jdbc.driver.OracleDriver() not found.."

plz give me solution for the problem..

with regards,
kalyan...

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: jdbc connectivity Posted: Jul 26, 2005 6:39 AM
Reply to this message Reply
> hi ,
> thanks for u'r reply.....ia m using windows xp as the
> operating system. JAVA_HOME is given as d:\j2sdk1.4.2
>
> and i have set the classpath as
> d:\oracle\0ra92\lib\classes111.jar,, even i am gettting
> the error

Check if your jar carries the appropriate file:

jar tvf d:\oracle\0ra92\lib\classes111.jar

to see if this package actually carries
oracle.jdbc.driver.OracleDriver

If it does, then your class path is not set correctly.
This would be in your Control Panel.

Run the jar command first, lets eliminate the issues
one at a time.

If it carries the package you should be able to
see the file:

oracle/jdbc/driver/OracleDriver

in your results, if it doesn't carry it, you
should be able to Google and download the
appropriate Jar file.

> when i am using type 2 or 4 driver in the stand alone
> system...
>
> "package oracle.jdbc.driver.OracleDriver() not found.."
>
> plz give me solution for the problem..
>
> with regards,
> kalyan...

Flat View: This topic has 3 replies on 1 page
Topic: Where have I gone wrong? Previous Topic   Next Topic Topic: help with MenuBar problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use