title: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library
body: <p>I am trying to create an OCR application using <a href="https://en.wikipedia.org/wiki/Tesseract_%28software%29" rel="nofollow">Tesseract</a>. I downloaded the Tesseract library and tested the code sample. But it is giving an error related to the <code>libtesseract302.dll</code> file. please tell me what to do exactly as I am a beginner!</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': Native library (win32-x86-64/libtesseract302.dll) not found in resource path ([file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/lib/jna.jar, file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/lib/jai_imageio.jar, file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/lib/ghost4j-0.3.1.jar, file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/lib/junit-4.10.jar, file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/build/classes/, file:/C:/Users/neel/Documents/NetBeansProjects/Tess4J/src/])
        at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
        at com.sun.jna.Library$Handler.(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.TessAPI.(TessAPI.java:38)
        at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:286)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:222)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:173)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:158)
        at net.sourceforge.tess4j.example.TesseractExample.main(TesseractExample.java:14)</p>
  </blockquote>