Community articleRunning the Form Sample Under Java on AIX, Linux, and Solaris
Added by IBM contributorIBM on November 25, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Run the form sample application in IBM® Forms Viewer to view what you have created.



Run the form sample application in IBM® Forms Viewer to view what you have created.
To set up and run the Form sample under Java:
  1. Switch to the directory:
  2.    <API Installation Folder>/samples/java/form/demo/sample_application/

  3. To view XFDL forms, you must use a computer running Windows. Copy the file formSample.xfd to a computer running Windows.
  4. In Windows, use the Viewer to open formSample.xfd.
  5. Notice the radio buttons used to indicate gender and the empty Age field. You can now close the Viewer.
  6. Using your Java compiler, compile the file called formSample.java found in the current folder.
    • This produces a new file called formSample.class.
  7. Run the sample application formSample.class.
    • This produces a new form called output.xfd in the current folder.
  8. Copy output.xfd to your Windows computer, then compare the two forms in the Viewer to see the changes that were made by the sample application.