|
Matchcode |
|
Example Name: McApplet Language: Java API type: Java API component filename: capscan.jar
Environment: Java 1.4 or higher |
|
What does it do? |
|
Demonstrates the use of, communicating with the Capscan Pool
Manager and searching using Single Search. This example is designed to work with UK PAF files.
|
|
Could be used as a
starting point for: |
|
Creating an applet to capture or verify a UK address. |
|
Where to find the
example code: |
|
After running the setup from the Matchcode CD to install the client
APIs you will find these examples installed (by default) in: C:\Program Files\Capscan\SDK\Matchcode Client
API\Java\Examples\McApplet If you have installed to another location you will need to
change the path where necessary.
|
|
What each file does: |
|
File name What does it do? McApplet.java Source
code for the example. search.htm HTML
file for viewing the applet.
|
|
Preparing to run the
example: |
|
Please make sure that you have installed the Capscan Pool Manager and that it is up and running.
|
|
Running the example: |
|
1.
Copy capscan.jar
to C:\Program Files\Capscan\SDK\Matchcode Client\Java\Examples\McApplet 2.
Open a Command Prompt. 3.
cd "C:\Program
Files\Capscan\SDK\Matchcode Client\Java\Examples\McApplet" 4.
Make sure capscan.jar
is in the CLASSPATH. 5.
javac McApplet.java 6.
Open search.htm with a web browser. 7.
You will be presented with an applet where
you can enter a building number and postcode to search for. 8.
Enter a building number and postcode then
click on "Search".
|
|
Trouble-shooting and
hints: |
|
1.
If you are running on a LAN make sure that
the Capscan Pool Manager is running correctly. To do this you can use the PoolMan Admin
application that is installed along with the Capscan Pool Manager. 2.
If you are using a firewall make sure that
it is not blocking this example or the Capscan Pool Manager. By default the Capscan Client/Server uses
port 27920 for sending and receiving data. 3.
Try installing and running the Matchcode DC
application to test that the Capscan Pool Manger is working correctly. The installation for Api\mcd_cs\win32\client\dc.
4.
For more hints and tips please see the SDK
bookshelf documentation.
|