I've found the unit tests completed successfully with JDK 10 as well. So 
make sure you install the appropriate VC++ runtime.

On Wednesday, July 18, 2018 at 6:48:35 AM UTC-5, Quan Nguyen wrote:
>
> That was old posts for older versions. You need VC++ 2015 at this time.
>
> Btw, we haven't tested it with Java 10 yet. Will do that soon.
>
> Thanks.
>
> On Tuesday, July 17, 2018 at 12:50:20 PM UTC-5, Dattatraya Tembare wrote:
>>
>> Forgot to mention, I have installed Visual C++ Redistributable for VS2013 
>> <http://www.microsoft.com/en-au/download/details.aspx?id=40784>
>> Still how to check it, whether I have installed correct version?
>>
>>
>> On Tuesday, July 17, 2018 at 1:49:09 PM UTC-4, Dattatraya Tembare wrote:
>>>
>>> I'm facing the same problem on Windows 10 with JDK 10 (same code is 
>>> working in Windows 7 with JDK 8)
>>> Error Logs: 
>>>
>>> java.lang.UnsatisfiedLinkError: The specified module could not be found.
>>>
>>>
>>>         at com.sun.jna.Native.open(Native Method) ~[jna-4.5.2.jar!/:4.5.2 
>>> (b0)]
>>>         at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288) 
>>> ~[jna-4.5.2.jar!/:4.5.2 (b0)]
>>>         at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427) 
>>> ~[jna-4.5.2.jar!/:4.5.2 (b0)]
>>>         at com.sun.jna.Library$Handler.<init>(Library.java:179) 
>>> ~[jna-4.5.2.jar!/:4.5.2 (b0)]
>>>         at com.sun.jna.Native.loadLibrary(Native.java:569) 
>>> ~[jna-4.5.2.jar!/:4.5.2 (b0)]
>>>         at com.sun.jna.Native.loadLibrary(Native.java:544) 
>>> ~[jna-4.5.2.jar!/:4.5.2 (b0)]
>>>         at 
>>> net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(LoadLibs.java:81) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at net.sourceforge.tess4j.TessAPI.<clinit>(TessAPI.java:42) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:364) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:277) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:260) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:241) 
>>> ~[tess4j-4.0.1.jar!/:4.0.1]
>>>         at 
>>> com.ea.ocr.tesseract.ReadImageText.ocrText(ReadImageText.java:143) 
>>> ~[classes!/:18.07.02]
>>>         at 
>>> com.ea.ocr.data.GenerateData.getOcrText(GenerateData.java:663) 
>>> ~[classes!/:18.07.02]
>>>         at 
>>> com.ea.ocr.data.GenerateData.voterCounts(GenerateData.java:299) 
>>> ~[classes!/:18.07.02]
>>>         at 
>>> com.ea.ocr.data.GenerateData.generateJsonFile(GenerateData.java:123) 
>>> ~[classes!/:18.07.02]
>>>         at 
>>> com.ea.ocr.controller.EaOcrController.generateJson(EaOcrController.java:35) 
>>> ~[classes!/:18.07.02]
>>>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.
>>> invoke0(Native Method) ~[na:na]
>>>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.
>>> invoke(Unknown Source) ~[na:na]
>>>         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.
>>> invoke(Unknown Source) ~[na:na]
>>>         at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[
>>> na:na]
>>>
>>>
>>>
>>> On Monday, April 27, 2015 at 7:46:40 PM UTC-4, Quan Nguyen wrote:
>>>>
>>>> Did you install Visual C++ Redistributable for VS2013 
>>>> <http://www.microsoft.com/en-au/download/details.aspx?id=40784>? This 
>>>> seems to be the most common problem. Check the forum 
>>>> <http://sourceforge.net/p/tess4j/discussion/> for answers.
>>>>
>>>> On Monday, April 27, 2015 at 9:29:28 AM UTC-5, Ankita Verma wrote:
>>>>>
>>>>> Hi, 
>>>>> I am getting an error
>>>>>
>>>>> Exception in thread "main" java.lang.UnsatisfiedLinkError: The 
>>>>> specified module could not be found.
>>>>>
>>>>> at com.sun.jna.Native.open(Native Method)
>>>>> at com.sun.jna.Native.open(Native.java:1759)
>>>>> at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:260)
>>>>> at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
>>>>> at com.sun.jna.Library$Handler.<init>(Library.java:147)
>>>>> at com.sun.jna.Native.loadLibrary(Native.java:412)
>>>>> at com.sun.jna.Native.loadLibrary(Native.java:391)
>>>>> at net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(Unknown 
>>>>> Source)
>>>>> at net.sourceforge.tess4j.TessAPI.<clinit>(Unknown Source)
>>>>> at net.sourceforge.tess4j.Tesseract.init(Unknown Source)
>>>>> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
>>>>> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
>>>>> at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
>>>>> at com.app.ocr.TesseractExample.main(TesseractExample.java:17)
>>>>>
>>>>> I have all the dlls in the classpath and the tessdata folder is in 
>>>>> place.
>>>>> Please help me regarding this.
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/f36adcbe-cf06-422a-94da-fb030bbdea54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to