Solved

Using JDBC to connect a ODBC data source

Posted on 2002-03-14
5
195 Views
Last Modified: 2010-03-31
First excuse me my poor english.(I'm Spanish speaker)
My problem is this:

I know that para registrar un driver I use:

// registrar driver
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
} catch (Exception e) {
System.out.println(e);
}

But i need know where are the file that contain this drivers.

If somebody can help I thanks.
0
Comment
Question by:HenryMon
5 Comments
 

Expert Comment

by:ashish_1319
ID: 6866599
There are 2-3 files that you can download from the net. I can name the files in which you can find the drivers.
classes12.zip , classes102.zip, classes111.zip

These are the zip files we use when we connect to the Oracle database.



Thanks
Ashish
0
 
LVL 4

Accepted Solution

by:
m_onkey_boy earned 100 total points
ID: 6867001
Those classes are in rt.jar in your jdk/jre/lib directory.
0
 
LVL 4

Expert Comment

by:m_onkey_boy
ID: 6867013
(classes12.zip , classes102.zip, classes111.zip)

Those are the Oracle type4 drivers, where he is using the jdbc:odbc bridge.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7901444
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: m_onkey_boy
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7962573
Per recommendation, force-accepted.

Netminder
EE Admin
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 38
expectj telnet failing 5 36
hibernate insert example 13 29
runtime exception 2 28
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question