I am running Eclipse and I know that this is a common problem (trying to make some JNA), but all the fixes that I found on the Internet do not work:
- The library is 32 bit, but when I get getProperty from sun.arch.data.model it is 32, so this is not a problem.
- I tried putting my dll in the src folder, at the root of my eclipse project, but nothing works.
- I tried doing System.setProperty ("jna.library.path", "c: /libtesseract302.dll"); and then putting your dll there, but that won't work.
Here is the code I'm using to try to include a native library:
public static final TessAPI INSTANCE = (TessAPI) Native.loadLibrary("libtesseract302", TessAPI.class);
source share