I am trying to create a JAVA application using FRE version 11 on Windows 7 machine.
I converted HELLO.java sample program to servlet and deployed the same on JBOSS EAP 6.3.
While accessing that servlet (during Engine.Load() method call), I am getting below error.
java.lang.UnsatisfiedLinkError: Can't load library: C:\ProgramData\ABBYY\SDK\11\FineReader Engine\win\x64\FREngine.Jni.dll
I have .dll files in C:\ProgramData\ABBYY\SDK\11\FineReader Engine\Java\com.abbyy.FREngine\win\x64 folder but there is no C:\ProgramData\ABBYY\SDK\11\FineReader Engine\win\x64\ folder.
Any help on resolution is appreciated....
asked 15 Apr '15, 13:46
The com.abbyy.FREngine.jar file is a self-unpacking archive which is unpacked on your machine the first time you use FineReader Engine Java API. The default folder where the contents are unpacked is Inc\Java.
You can check the default folder by calling the Engine.GetJNIDllFolder method in your project before Engine initialization. Probably, in your case it was changed to "C:\ProgramData\ABBYY\SDK\11\FineReader Engine".
To resolve the situation, please, set the correct path to the FREngine.Jni.dll. It can be done by using the Engine.SetJNIDllFolder method. So please add the following line before Engine initialization in your project:
answered 16 Apr '15, 13:59
Anna Falevskaya ♦♦