Solved

Using JDBC to connect a ODBC data source

Posted on 2002-03-14
5
196 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

821 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