Community articleRunning the FCI Sample Under Java
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

The FCI sample application for Java uses the FCI methods to create a function called convertDate. This function takes two arguments, the date and the locale, and converts the date into the specified country's language and format. The application displays the converted date as a value for the Converted Date label. In this sample, the JAR file containing the extension was embedded into the form.
To run the FCI sample application:
  1. Open the form called fciSampleWithJar.xfd found in the folder:
  2.    <API Installation Folder>\samples\java\fci\demo\convert_date\

  3. Enter a date in the Date field, then select a language and date conversion format.
  4. Click on Click me to convert the date.
    • The converted date appears on the form.
Note: For information on how to build JAR (Java archive) files, refer to the IBM Forms Server API – Java API User's Manual. For information on embedding JAR files into XFDL forms, refer to the online help for the Designer.