This interface allows Office Server Document Converter V11.0 to be invoked from Java programs. version 11 or later. See Java VM Issues.
The Java Interface uses JNI (Java Native Interface).
The following library files are included in [Install directory] or [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
DfvJavaCtl.jar | Java Archive | [Install directory]/lib |
DfvJavaCtl.dll | Java Interface Library for Windows | [Install directory] |
libDfvJavaCtl.so | Java Interface Library for Linux | [Install directory]/lib |
In order to execute the Java Interface, directory of execute java and [Install directory]/lib/DfvJavaCtl.jar must be included in the CLASSPATH environment variable. In addition, from using JNI (Java Native Interface), in Windows versions, [Install directory] must be included in the PATH environment variable. In the following environment, [Install directory]/lib must be included. In Linux versions, it must be included in the LD_LIBRARY_PATH environment variable. See also Environment Variables and Symbolic Links for the necessary environment variables.
Windows versions:
Linux versions:
Java Interface is built using Eclipse Temurin JDK (Former AdoptOpenJDK) 11. Java runtime environments below Java 11 are not supported. Additionally using Java execution of an old version in the Linux environment could cause compatibility issues.
Since the native JNI library can be read by two or more Java VM class loaders, when using this interface in application servers, such as Tomcat, do not install the DfvJavaCtl.jar in the WEB-INF/lib of the Web application. Set the interface to be read by class loaders (system class loader etc.) which only load once.
[Install directory]/samples/java includes some simple sample programs.
To run these sample programs in [Working directory], do the following.
Copy the directory under samples to [Working directory]. At this time, include [Working directory]/samples/java in the CLASSPATH.