Introduction

The Java sample programs demonstrate how to use the Java implementation of HTML Export. The sample code is intended to provide a starting point for your own applications or to be used for reference purposes. You can also test these sample programs with the sample files provided in install\testdocs.

The source code for the programs is in the directory javaapi/sample. Included alongside the source code are compiled .class files, and Batch (.bat) and C Shell (.csh) files that help run each program.

The sample programs pass license information to KeyView through the HtmlExport constructor. This is the method recommended by Micro Focus. Before the sample code can be compiled, you must replace the placeholders YOUR_LICENSE_ORGANIZATION and YOUR_LICENSE_KEY with your license information.

The compiled .class files that are supplied in the SDK have an embedded trial license, which expires approximately five months after release. If the environment variables KV_SAMPLE_PROGRAM_LICENSE_ORGANIZATION and KV_SAMPLE_PROGRAM_LICENSE_KEY are set then those values are used instead, so that you can use the programs after the embedded trial license has expired, and test or troubleshoot with your own license.

In addition to the sample programs, Micro Focus provides a reference implementation for HTML Export. For more information, see HTML Export Reference Implementation.