Hi, JVM looks for DLLs in paths which are specified in java.library.path env. variable. Try to explicitly specify path to directory in which you have your dll. In Netbeans try to add env. variable to your project: -Djava.library.path=path/to/your/dll this should help. You may also search for some generic JNI tutorial.
Hope this was helpful. regards, Adam Dudczak W dniu piątek, 18 stycznia 2013 15:11:56 UTC+1 użytkownik Deniz Atak napisał: > > Hi, > > I am trying to run Tess4J in 64 JVM from Netbeans IDE and getting this > error: > Testcase: testTessBaseAPIRect(net.sourceforge.tess4j.TessAPI1Test): > Caused an ERROR > Unable to load library 'libtesseract302': The specified module could not > be found. > > java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': > The specified module could not be found. > > at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169) > at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242) > at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:205) > at com.sun.jna.Native.register(Native.java:1033) > at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:37) > at > net.sourceforge.tess4j.TessAPI1Test.testTessBaseAPIRect(TessAPI1Test.java:72) > > > As far as I searched, I think this error message is because of the JVM. > But I am not sure. The .dll file is in the project folder, but it seems JVM > can not find it..Can anyone recommend a link to run Tess4J test from > scratch? > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en

