This interface allowsRainbow PDF Server Based Converter V3.0 to be invoked from Java programs. version 1.4.2 or later . Please refer to Java VM issues.
The Java Interface uses JNI (JavaNativeInterface).
The following library files are included in [Install directory] or [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
DfvJavaCtl.jar | Java Archiver | [Install directory]/lib |
DfvJavaCtl.dll | Java Interface Library for Windows | [Install directory] |
libDfvJavaCtl.so | Java Interface Library for Solaris / 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 (JavaNativeInterface), in Windows version, [Install directory] must be included in the PATH environment variable. In the following environment,[Install directory]/lib must be included. In Solaris / Linux version, it must be included in the LD_LIBRARY_PATH environment variable. See also Environment Variables for the necessary environment variables.
Windows version:
> set CLASSPATH=[Install directory]/lib/DfvJavaCtl.jar;%CLASSPATH% > set PATH=[Install directory];%PATH%
Solaris / Linux version:
$ CLASSPATH=[Install directory]/lib/DfvJavaCtl.jar:${CLASSPATH} $ export CLASSPATH $ LD_LIBRARY_PATH=[Install directory]/lib:${LD_LIBRARY_PATH} $ export LD_LIBRARY_PATH
Java Interface is built using J2SE1.4.2. Java runtime environments below v1.4.2 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 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 sample.java > java sample sample.fo sample.pdf
Please refer to the Javadoc documentation.