So I have been tasked with pulling data from an old FoxPro .dbf file with java. So far no real joy in the google searches and searches on here. There are several solutions but none seem to be working. I get no error when I run this, it just starts up the jframe, prints out the Class.forName for whatever reason and just sits there. Any thoughts would be appreciated..
try
{
String url = "jdbc:odbc:DRIVER={Microsoft dBase Driver (*.dbf)};DBQ='C:\\Users\\jemmett\\Desktop\\cell\\cell\\BMPNF1.DBF'";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connection = DriverManager.getConnection(url);
System.out.println("Connect to " + connection.getCatalog() + " a success!");
}
catch (ClassNotFoundException | SQLException e)
{
System.out.println(e.getMessage());
}