title: Tessj4 - Error opening data file ./tessdata/eng.traineddata
body: <p>I have this problem in my web application in Tomcat 9:</p>
  
  <p><strong><em>Error opening data file ./tessdata/eng.traineddata
  Please make sure the TESSDATAPREFIX environment variable is set to the parent directory of your "tessdata" directory.
  Failed loading language 'eng'
  Tesseract couldn't load any languages!</em></strong></p>
  
  <p>I create folder C:\Tess4J from Tess4J 3.0.4 zip, with subfolders:</p>
  
  <ul>
  <li>dist
  
  <ul>
  <li>tess4j-3.0.jar</li>
  </ul></li>
  <li>lib
  
  <ul>
  <li><em>LIBS</em></li>
  </ul></li>
  <li>nbproject</li>
  <li>src</li>
  <li>tessdata
  
  <ul>
  <li><em>Downloaded ZIP with languages and extracted here</em></li>
  </ul></li>
  <li>test</li>
  </ul>
  
  <p>In catalina.properties i add:</p>
  
  <ul>
  <li>C:/Tess4J/dist/tess4j-3.0.jar,C:/Tess4J/lib</li>
  </ul>
  
  <p>In environments i try to add both, and doesn't work:</p>
  
  <ul>
  <li>TESSDATA_PREFIX --> C:/Tess4J</li>
  <li>TESSDATA_PREFIX --> C:/Tess4J/tessdata</li>
  </ul>
  
  <p>Then i invoke my servlet whit doOCR method, and i've got error.</p>
  
  <p>May you help me please?</p>