This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC" Watch "JDBC" New topic
Author

JDBC

arnold stalon
Greenhorn

Joined: Jun 24, 2005
Posts: 2



Error:
-----
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
Marshal

Joined: May 26, 2003
Posts: 32635
    
215

Arnold,
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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
David O'Meara
Rancher

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: http://aspose.com/file-tools
 
subject: JDBC
 
It's not a secret anymore!