Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I install Oracle JDBC for Java Programming / Netbeans?

714189Jul 29 2009 — edited Nov 20 2014
I downloaded Netbeans and have compiled and run some sample java programs. They execute fine. Now what I want to do is start programming with JDBC to connect to Oracle 11g which I installed on my computer. I downloaded the JDBC driver and it just told me to set the classpath to "ojdbc6.jar", which is already in my oracle folder and it gave me another copy of "ojdbc6.jar", which I don't need. I set the classpath and when I go into netbeans and type import for the oracle package it says the package does not exist.

What is the best way I can get started programming in Netbeans using JDBC by installing the fewest things? I read that I should be using Oracle Call Interface, but I don't understand the difference between that and the OCI based JDBC driver and I don't know how to install either or if I need both.

Could somebody explain this to me because I find this very confusing and I followed the one instruction given in the JDBC driver file.

Thank you.

Edited by: user11090157 on Jul 30, 2009 8:01 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2009
Added on Jul 29 2009
7 comments
5,475 views