datalogics / adobe-pdf-library-samples

Sample code for the Datalogics C++, Java, and .NET interfaces of the Adobe PDF Library
https://www.datalogics.com/adobe-pdf-library/
80 stars 62 forks source link

Exception in thread "main" java.lang.RuntimeException: PDF Library Error: Error during initialization #81

Closed pulkit-maheshwr closed 1 year ago

pulkit-maheshwr commented 1 year ago

Running the Java samples (Annotations.Java) -

Exception in thread "main" java.lang.RuntimeException: PDF Library Error: Error during initialization, Error number: 1073741825 at com.datalogics.PDFL.PDFLJNI.new_Library__SWIG_0(Native Method) at com.datalogics.PDFL.Library.(Library.java:128) at com.datalogics.pdfl.samples.Annotations.Annotations.Annotations.main(Annotations.java:32)

datalogics-pgallot commented 1 year ago

This is most likely a configuration issue. The easiest way to address it is to change the working directory for the app to the (Java/binaries) directory that contains the DLLs. The next-most-easiest is to specify this directory in the PATH environment variable. Java IDEs generally have a configuration tab to allow you to specify environment variables specific to the Java process running the app.

pulkit-maheshwr commented 1 year ago

I have already specified the directory in the PATH environment variable. Initially, I was getting some other error. After adding the directory path, I am getting this error.

datalogics-pgallot commented 1 year ago

@pulkit-maheshwr please send an Email to tech_support@datalogics.com to continue this conversation off-line.