Installing the JNI-based synchronization provider on Windows CE

To install the JNI-based synchronization provider on Windows CE operating systems you must compile and run the ISyncSample program. The JNI-based Sync Provider for Windows CE devices have been tested on OTI J9 JVM.

Procedure

  1. Compile the ISyncSample program on your workstation.
    1. Type the following command to compile ISyncSample.java with isync4j.jar in the classpath:
      javac -classpath isync4j.jar ISyncSample.java
      
    2. Edit isyncdb2e.properties to specify the server URL, user, and password.
  2. Run the ISyncSample program.
    1. Verify that the J9 Java Virtual Machine (JVM) run-time environment is installed on the device (for example, \wsdd). In addition, the DB2 Everyplace and Sync Client libraries must be installed.
    2. Copy the ISyncSample.class and isyncdb2e.properties files to the device (for example, \).
    3. Use one of the following two methods to invoke the ISyncSample program with isync4j.jar in the classpath.

      Java console
      Type the following command:
      j9.exe -bp:\wsdd\classes.zip -cp:\wsdd;\Windows\isync4j.jar ISyncSample 
        <property file>
      

      For example:

      j9.exe -bp:\wsdd\classes.zip -cp:\wsdd;\Windows\isync4j.jar
       ISyncSample isyncdb2e.properties
       
       
      

      Windows shortcut
      Create and edit a Windows shortcut called ISyncSample.lnk on your workstation. For example:
      255#"\wsdd\j9.exe" "-bp:\wsdd;\Windows\isync4j.jar;\wsdd\classes.zip" 
      "ISyncSample" "isyncdb2e.properties"
      

      Enter the shortcut on a single line, and enclose each field in double quotation marks. The first field that you type must be the name of the executable. The files and directories that you specify must be fully qualified.

    4. Run the sample program, and verify that the synchronized data resides in the target directory as specified in the property file.

Related tasks