Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC

 
arnold stalon
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic