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:
- The library is 32bit, but when I do getProperty of sun.arch.data.model it is 32 so this is not the issue.
- I've tried putting my dll in the src folder, in the root of my eclipse project, but nothing works.
- I've tried doing System.setProperty("jna.library.path","c:/libtesseract302.dll"); and then putting my dll there, but that does 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);