I'm running Eclipse and I know this is a common problem (trying to do some JNA), but all the fixes I have found online do not work:
Here is the code I use to try to include the native library:
public static final TessAPI INSTANCE = (TessAPI) Native.loadLibrary("libtesseract302", TessAPI.class);
you need another dll, it's a libtesseract302 dependency : "liblept168.dll" ( it could be found here : http://code.google.com/p/tesseract-ocr/source/browse/trunk/vs2008/lib/liblept168.dll?r=553 )
try something like this :
put both dll files in same folder ( let's say tesseractlib )
in your code, before loading the module, add :
System.setProperty("jna.library.path", "tesseractlib");
( btw, you need to use a 32-bit jvm too, both dll are 32-bit not 64-bit libraries, and cannot be loaded in a 64-bit jvm )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With