Installing the Visual C++ Runtime
Please note that the Windows installation of webPDF automatically installs the Visual C++ Runtime if necessary. The following notes are only for technical explanation.
To use the OpenJDK and to run the webPDF server, especially external processes (like OCR or document conversion), the Visual C++ Runtime Environment is required.
The installation of the Visual C++ Runtime only applies to the Windows platform!
The presence of the Visual C++ Redistributable (short VCRedist) is important for the program parts OpenJDK and the external tools of the webPDF server
OpenJDK
The OpenJDK needs the VCRedist to run. Usually the VCRedist is already present on the Windows installation. However, if the following message appears in the log files when the webPDF server is started,
java.lang.UnsatisfiedLinkError: C:\Program Files\webPDF\jre\bin\awt.dll: Can't find dependent libraries
then the runtime environment is missing and this must be installed additionally.
On the page "Microsoft Visual C++ Redistributable" is the corresponding download. Go to "Visual Studio 2015, 2017, 2019 and 2022" and download the appropriate package for your platform and install it before starting the webPDF server.
External tools of the server
Some of the external programs are based on the Visual C++ 2015-2022 Runtime (short VCRedist), which is needed to run the program parts. Normally webPDF detects the installation of the VCRedist package and installs it automatically during the installation of the webPDF server, if necessary.
However, if the detection does not work correctly or there are subsequent error messages or codes in the log files, then the VCRedist must be installed manually.
Possible error messages if VCRedist is not present:.
2023-03-22 11:49:21,792 ERROR [Application Server ] Unable to execute 'C:\webPDF\imagemagick\magick.exe' (process exit code '-1073741515')
2019-11-25 16:19:15,032 ERROR [Application Server ] Unable to execute 'C:\webPDF\outsidein\exporter.exe' (process exit code '-1073741515')
On the page "Microsoft Visual C++ Redistributable" is the corresponding download. At "Latest Microsoft Visual C++ Redistributable Version" download the corresponding package in version 2017 (VC++ 14.x) for your platform and install it before you start the webPDF server.