Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JDBC and Relational Databases and the fly likes JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC" Watch "JDBC" New topic


arnold stalon

Joined: Jun 24, 2005
Posts: 2

unable to connect.

my current directory is e:/program files/editplus/java
here my jdk directory:e:/java/jdk1.3.
how to add the ODBC drivers and JDBC drivers and where i placed it?
how to set my CLASSPATH?
how to solve this problem?

please help me.

Thank you.

[aded code tags]
[ July 06, 2005: Message edited by: Jeanne Boyarsky ]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31668

Welcome to JavaRanch!

Can you print the stack trace for the SQLException and post it here? That usually gives more details as to what the problem is.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

how to add the ODBC drivers and JDBC drivers and where i placed it?
As long as the ODBC driver is installed in windows, it will be found. You don't need to worry about it beyond ensuring it is there. The Drivers for the JDBC-ODBC bridge are included in the Sun classes and is always available when you use the Sun JDK.

Have you set up an ODBC datasource pointing to your database on your computer? Also, I'm assuming you're using an Access database?
I agree. Here's the link:
subject: JDBC