• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

connect oracle type 4 driver in eclipse

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
I Have a problem with connecting oracle type driver in eclipse.
when i give the connection as
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection c;
c=DriverManager.getConnection("jdbc racle:thin:@localhost:1521 rcl","mustaq","mus");

it display the error as follows
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The type OracleDriver must implement the inherited abstract method Driver.connect(String, Properties)

at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:5)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at chan.main(chan.java:11)
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should not be loading the driver using this line:

Use this instead:
reply
    Bookmark Topic Watch Topic
  • New Topic