there alot of things that can be wrong?
First start with looking at your code, make sure everything is spelled correctly, if you are using MSAccess your connection should look similar to the following.
try{
String url = "jdbc

dbc:YourDatabaseName";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"

;
connect = DriverManager.getConnection(url, "yourusername", "yourpassword"

;
}
catch(ClassNotFoundException cnfex){
cnfex.printStackTrace();
}
catch(SQLException sqlex){
sqlex.printStackTrace();
}
catch(Exception excp){
excp.printStackTrace();
}
If you are using Windows 2000 Proffesional, make sure you create a Data Source name using the administrative tools.
Lastly, be more elaborate on your questions next time. Having the exact error can be useful sometimes

Java Rocks