Installation and Getting Started Guide (On-Premises)

Installation and Getting Started Guide (On-Premises)

ConsoleDemo

ConsoleDemo

The ConsoleDemo is a CLI-based application that you can use to parse and validate addresses. The source code and the executable for ConsoleDemo are provided in the Informatica Address Verification software package. The
src
directory of the Informatica Address Verification software package contains the source code for ConsoleDemo. The
bin
directory contains the ConsoleDemo executable.
For ConsoleDemo to work correctly, complete the following prerequisites:
  • Copy the example XML files, including
    InputData.xml
    and
    SetConfig.xml
    , from the
    etc
    directory to your working directory. You can edit these files as required to experiment with the settings.
    InputData.xml
    contains address examples that you can process using
    consoledemo -xml
    or
    consoledemojava -xml
    .
  • Update
    SetConfig.xml
    to include a valid unlock code, which you received along with the Address Verification license, and the path to the reference address database to which the unlock code maps. Alternatively, copy or link at least the Swiss reference database (
    CHE5BI.MD
    ) to the working directory before running the ConsoleDemo executable. The ConsoleDemo application attempts to validate a sample address from Switzerland and requires the Swiss database to complete the validation. If it does not find the Swiss database, ConsoleDemo only parses the input address.
  • Add the contents of the
    lib
    directory to the shared library path of your device. On Windows devices, run the
    set PATH=%PATH%;.\lib
    . On Unix-based devices, run
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
    .
  • To call the Java API from Unix-based devices except IBM J9 JVM, run
    java –Xss2048k -cp bin:lib/AddressDoctor5.jar -Djava.library.path=lib ConsoleDemoJava
    .
    On IBM J9 JVM, run
    java -Xmso2m -cp bin:lib/AddressDoctor5.jar -Djava.library.path=lib ConsoleDemoJava
    .
  • To call the Java API from Windows devices, run
    java –Xss2048k -cp bin;lib\AddressDoctor5.jar -Djava.library.path=lib ConsoleDemoJava
    .

0 COMMENTS

We’d like to hear from you!