Java Interface

This interface allows Word API V0.5 to be invoked from Java programs. version 11 or later. See Java VM issues .

The Java Interface uses command-line interface.

Library files

The following library files are included in [Install directory] or [Install directory]/lib.

Library file Contents Location
AHOOXMLDocxManagerJavaCtl.jar Java Archiver [Install directory]/lib

In order to execute the Java Interface, directory of execute java and [Install directory]/lib/AHOOXMLDocxManagerJava.jar must be included in the CLASSPATH environment variable. See also Environment Variables for the necessary environment variables.

Windows version:

> set CLASSPATH=[Install directory]/lib/AHOOXMLDocxManagerJava.jar;%CLASSPATH% > set PATH=[Install directory];%PATH%

Java VM issues

Word API V0.5 Java Interface is built with OpenJDK 11. Java runtime environment less than Java 11 are not supported.

Running the Sample Program

[Install directory]/samples/java contains several simple sample programs.

The following shows how to execute these sample programs. In this case [Install directory]/samples/java must be included in CLASSPATH.

> cd [Install directory]/samples/java > javac -encoding UTF-8 Sample_get_simple_data_merge_field.java > java Sample_get_simple_data_merge_field

API Specification

See the Javadoc documentation.