Developer’s Guide

Table Of Contents
Using Java and JDBC to deliver your data 9-15
Install the example and the FileMaker JDBC Driver
If necessary, install the Visual Cafe example and the FileMaker
JDBC Driver.
The Visual Cafe folder contains the modified database file used in
this example and all of the completed files generated by the
DataBound Project Wizard for the application.
Set up Visual Cafe to use the FileMaker JDBC Driver
1. Start Visual Cafe 4.0 Expert Edition for Windows.
2. Choose Tools menu > Environment Options and click the Internal VM
tab. Then click New for the Classpath Settings.
3. Locate the Fmpjdbc12.jar file and add it to the SC.INI CLASSPATH list
to add the FileMaker JDBC Driver to the Visual Cafe environment.
Open and share the inventory_db database
1. In FileMaker Pro, open the inventory_db file in the Visual Cafe
example folder.
2. Choose File menu > Sharing, verify that Web Companion is selected,
and click OK to share the database on the Web.
For information about setting up the Web Companion so that it’s
already selected in this dialog box, see “Enabling the Web
Companion” on page 6-3.
Create a new Visual Cafe project
1. In Visual Cafe, choose File menu > New Project.
2. Select the DataBound Project Wizard template and click OK.
3. In the DataBound Project Wizard, select Application for the project
type and click Next.
4. Select Define another data source and click Next.
5. In the DataBound Project Wizard, click New.
6. In the Insert Datasource dialog box, click Add Driver.
7. In the Add Third Party Driver dialog box, type
com.fmi.jdbc.JdbcDriver and click Add.
8. In the Insert Datasource dialog box, select com.fmi.jdbc.JdbcDriver,
type
fmpro in the Vendor SubProtocol box, type
http://localhost in the Vendor SubName box (or the IP
address of the computer hosting the inventory_db database), and
then click Add Driver.