title: Teeseract (Tess4J ocr java with eclipse)Configuration
body: <p>I have a small question. I try to test a sample exemple .Getting Text from images(scaned text) with OCR (Tess4J) Tesseract java and eclipse.</p>
  
  <pre><code>File imageFile = new File("D:\\HEAD2.png");
                  Tesseract instance = Tesseract.getInstance();  // JNA Interface Mapping            
                 // Tesseract1 instance = new Tesseract1(); // JNA Direct Mapping
  
                  try {
                      String result = instance.doOCR(imageFile);
                      System.out.println(result);
                  } catch (TesseractException e) {
                      System.err.println(e.getMessage());
                  }
  </code></pre>
  
  <p>this is how I configure my application:</p>
  
  <p>1)Download Tess4J the folder that contains (tess4j.jar, folder tessdata, libtesseract302.dll, liblept168.dll)</p>
  
  <p>2) I add the jar in the path of the application
  3) I add the other in the current directory of the application</p>
  
  <p>Finally, the example works well.
  But today ,when I execute this exempble he referred me error</p>
  
  <blockquote>
    <p>Error opening data file \Application
    Data\Tesseract-OCR\tessdata/eng.traineddata Please make sure the
    TESSDATA_PREFIX environment variable is set to the parent directory of
    your "tessdata" directory. Failed loading language 'eng' Tesseract
    couldn't load any languages!</p>
  </blockquote>
  
  <p>after also download tesseractOCR.exe in C: \ programmeFiles \ TesseractOCR .it works fine
  But When also delet thisprogramm also works fine ..waht is the role of this this programm</p>
  
  <p>it works fine even without <code>instance.setDatapath("C:\\Program Files\\Tesseract-OCR");</code>
  .I don't figure out !!</p>