Hi.
I want to use FileMaker database as the data source locally. Must I have the server edition?
I have installed JDBC Client Driver, but java can found it.
Where should I install it?
Or my code has some problems?
here is the code:
Further more, are there any special settings needed in FileMaker?
Please give a comment. Thank you in advanced.
screen shot:
I want to use FileMaker database as the data source locally. Must I have the server edition?
I have installed JDBC Client Driver, but java can found it.
Where should I install it?
Or my code has some problems?
here is the code:
Code:
import java.sql.*;
public class testDrive {
public static void main(String args[]) {
// register the JDBC client driver
try {
Driver d=(Driver)Class.forName("com.ddtek.jdbc.sequelink.SequeLinkDriver").newInstance();
//Class.forName("com.ddtek.jdbc.sequelink.SequeLinkDriver");
} catch(Exception e) {
System.out.println(e);
}
// establish a connection to FileMaker
Connection con;
try {
con=DriverManager.getConnection("jdbc:sequelink://localhost:2399;serverDataSource=Records");
} catch(Exception e) {
System.out.println(e);
}
// get connection warnings + ";serverDataSource=" + dbName
/*SQLWarning warning=null;
try {
warning=con.getWarnings();
if (warning==null) {
System.out.println("No warnings");
return;
}
while (warning!=null) {
System.out.println("Warning: "+warning);
warning = warning.getNextWarning();
}
} catch (Exception e) {
System.out.println(e);
}*/
}
}
Further more, are there any special settings needed in FileMaker?
Please give a comment. Thank you in advanced.
screen shot: