// Access.java
import java.sql.*;
public class AccessTest
{
public static void main(String [] args) throws Exception
{
try
{
//register driver and establish the connection
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =DriverManager.getConnection("jdbcdbc:accdsn");
//create statement object
Statement st =con.createStatement();
//send and execute query
ResultSet rs =st.executeQuery("select * from student");
// precess the result object
while(rs.next())
{
System.out.println(rs.getInt(1)+" "+rs.getString(2)+" " +rs.getString(3));
}
//close jdbc objects
rs.close();
st.close();
con.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}//main()
}//class
i am getting run time error in xp3 please help to me....................