Community articleRunning Calculate Age Under Classic and Streaming Java
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

No abstract provided.

Follow these steps to set up and run the Calculate Age sample application under Java:
  1. Using the Viewer, open the form called calculateAge.xfd located in the folder:
  2.    <API Installation Folder>\samples\java\form\demo\calculate_age\

  3. Change the name and birth date if you want, then save and close the form.
  4. Using your Java compiler, compile the file called found in the current folder.
    • This produces a new class file called calculateAge.class.
  5. Run calculateAge.class.
    • This creates a form called output.xfd in the current folder.
  6. Open the output.xfd form, and check the number in the Age field.