title: Tess4J: Invalid memory access
body: <p>I am trying to use Tess4J in my project to extract text from an image. I am getting the following error when I try run the OCR:
  Exception in thread "main" java.lang.Error: Invalid memory access</p>
  
  <pre><code>    try {
          File imageFile = new File("example4.jpg");
          Tesseract instance = Tesseract.getInstance(); // JNA Interface Mapping
          //Tesseract1 instance = new Tesseract1();
          String result = instance.doOCR(imageFile);
          System.out.println(result);
      } catch (Exception e) {
          e.printStackTrace();
      }   
  </code></pre>