title: Unable to load library 'libtesseract302':Module cannot be found (Windows10)
body: <p>We are trying to make software for a car parking system using image processing. We used OCR. We intend to use a webcam to obtain images of the license plate when the vehicle leaves and enters. We will then use the number to calculate the time spent inside the park and price tickets based on that.
  This is my code:</p>
  
  <pre><code>import java.io.File;
  import net.sourceforge.tess4j.ITesseract;
  import net.sourceforge.tess4j.Tesseract1;
  import net.sourceforge.tess4j.TesseractException;
  public class TestOCR {
  
      public static void main(String[] args) {
  
                  File imageFile = new File("C:"+File.separator+"projects"+File.separator+"plate.tif");
                  //ITesseract instance = new Tesseract();  // JNA Interface Mapping
                  ITesseract instance = new Tesseract1(); // JNA Direct Mapping
  
                  try {
                      //String result = instance.doOCR(imageFile);
                      //stem.out.println(result);
                  } catch (Exception e) {
                      System.err.println(e.getMessage());
                  }
  
  
      }
  
  }
  </code></pre>
  
  <hr>
  
  <p>When I run this, I get this error:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': The specified module could not be found.
  
      at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:145)
      at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:188)
      at com.sun.jna.Library$Handler.&lt;init&gt;(Library.java:123)
      at com.sun.jna.Native.loadLibrary(Native.java:255)
      at com.sun.jna.Native.loadLibrary(Native.java:241)
      at net.sourceforge.tess4j.TessAPI.&lt;clinit&gt;(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 net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
      at com.nadeem.app.ocr.TesseractExample.main(TesseractExample.java:16)
  </code></pre>
  
  <p>Initially we had a NoSuchFieldError and after using Maven to fix that we encountered this problem.</p>