Creating the plug-in of Java Client Sample Desktop

The WCI Sample is a plug-in that wraps the Java(TM) Client Sample. Therefore, the first step of creating the WCI Sample is to create the plug-in of Java Client Sample Desktop.

The system requirement is Windows(R) XP, Eclipse 3.0 M8, and Workplace(TM) Client Technology/Client Administrator 1.0 (WCT/CA 1.0)

To create the plug-in of Java Sample desktop:
  1. Start Eclipse 3.0 M8. Create a new plug-in project named bttwcisample.
  2. Import bttwcisample.jar into the /src folder.

  3. Right-click the bttwcisample project and select Properties > Java Build Path > Libraries. Add the following external JAR files to class build path :
    • dseb.jar
    • dsecsm.jar
    • dsecsm.jar
    • dsecss.jar
    • dsed.jar
    • dseflp.jar
    • dsegb.jar
    • dsesym.jar
    • dsetde.jar
    • jh.jar
    • syslib.jar
    • xercesImpl.jar
    • xml-apis.jar
    • xmlParserAPIs.jar
    • btteclipsebrg.jar

    You can find these JAR files under the <toolkit_root>/sample/WCISampleApplication/com.ibm.btt.wci.sample directory. <toolkit_root> refers to the folder that you have the toolkit installed.

  4. If necessary, modify the BTTdesktop4role.properties file. As mentioned before, according to their roles, different users will see different desktop layout. The mappings between a user role and its layout isdefined in the BTTdesktop4role.properties file. By default, the WCI Sample provides a teller role and a supervisor role. If a user signs in with a role that is not defined in the BTTdeskt4role properties file, the layout described in desktop.xml will be used.
  5. Import the plugin.xml and plugin.properties from <toolkit_root>/sample/WCISampleApplication/com.ibm.btt.wci.sample/ to the root folder of bttwcisample project.
    Note: The plugin.xml will overwrite existing plugin.xml in the bttwcisample project.
  6. Export the plug-ins project. In the export wizard, export all the referred jar files, xml files, and properties files in bttwcisample project.