Hi,

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

java.lang.ClassLoader.loadLibrary(Unknown Source)
java.lang.Runtime.load0(Unknown Source)
java.lang.System.load(Unknown Source)
com.abbyy.FREngine.Engine.unpackJarAndLoadFREngineJNIDll(Engine.java:164)
com.abbyy.FREngine.Engine.loadFREngineJNIDll(Engine.java:118)
com.abbyy.FREngine.Engine.Load(Engine.java:20)
com.cgi.t360.MyTestOCR.loadEngine(MyTestOCR.java:66)
com.cgi.t360.MyTestOCR.doGet(MyTestOCR.java:44)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

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....

Thank you!!!

asked 15 Apr '15, 13:46

vshah's gravatar image

vshah
113


Hello!

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:

Engine.SetJNIDllFolder("C:\\ProgramData\\ABBYY\\SDK\\11\\FineReader Engine\\Java\\com.abbyy.FREngine");

link

answered 16 Apr '15, 13:59

Anna%20Falevskaya's gravatar image

Anna Falevskaya ♦♦
715

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×2

Asked: 15 Apr '15, 13:46

Seen: 1,135 times

Last updated: 16 Apr '15, 13:59

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal