xtrim Posted November 10, 2004 Posted November 10, 2004 Does anybody has an example of JAVA working with JDBC and FMP?
Newbies dwanehollands Posted December 16, 2004 Newbies Posted December 16, 2004 sure thing man first load the the driver d = (Driver)Class.forName("com.ddtek.jdbc.sequelink.SequeLinkDriver").newInstance(); you can either do it that way of set the system property and use the driver manager to load the driver System.setProperty("jdbc.drivers","com.ddtek.jdbc.sequelink.SequeLinkDriver"); en = DriverManager.getDrivers(); while (en.hasMoreElements()) { d = (Driver)en.nextElement(); sb.append(d.getClass().getName()); } k, once u have the driver get the connection Connection con = DriverManager.getConnection("jdbc:sequelink://127.0.0.1:2399","Username","Password"); witht the above url im hosting the database on the same machine as my java app and the port number is 2339 and now that u have the conection u can execute sql statements a few things that might help u..... make sure the driver (jar file i forget its name) is in the class path or u will get a class loading exception .... Make sure the filemaker database is running when you try and connect ....i know i know... but it got me a couple of times and that should be it ohh and make sure that JDBC shareing is turned on kool well have fun
Recommended Posts
This topic is 7280 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now