File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes how to set classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "how to set classpath" Watch "how to set classpath" New topic

how to set classpath

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
i am trying to connect to microsoft,s access database on my machine through a java program,but i am getting classnot found exception.
i am using the method
please help.
sandeep balyan
Ranch Hand

Joined: Jul 25, 2001
Posts: 134
import java.sql.*,javax.sql.*
hope it help
njoy regds

Want to do something great will do one day
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Dhriti, you may need to post some code.

So much trouble in the world -- Bob Marley
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
And you need to put the JdbcOdbcDriver class (or the jar where its included) in the classpath.
jered veld

Joined: Sep 26, 2002
Posts: 6
hi refer to the thread i posted not too long ago it may help you.

java newbie
I agree. Here's the link:
subject: how to set classpath
It's not a secret anymore!