title: Tesseract error. Illegal min or max specification
body: <p>Trying to run sample code from here <a href="http://tess4j.sourceforge.net/codesample.html" rel="nofollow">http://tess4j.sourceforge.net/codesample.html</a> I got an error saying </p>
  
  <pre><code>Error: Illegal min or max specification!
  signal_termination_handler:Error:Signal_termination_handler called:Code 5002
  </code></pre>
  
  <p>I found solution e.g. here <a href="https://code.google.com/p/tesseract-ocr/issues/detail?id=228" rel="nofollow">https://code.google.com/p/tesseract-ocr/issues/detail?id=228</a> ppl say that setting locale is enough to get rid of error. My problem is that I write it in Java not C++ and I cannot find anywhere how I can set locale in my code as they did it like that </p>
  
  <pre><code> #include &lt;locale.h&gt;
   setlocale (LC_NUMERIC, "C");
  </code></pre>
  
  <p>I was trying to use <code>setTessVariable(String, String)</code> method but it didn't work. I will mention that my pdf files, which are on input, are in polish language so if someone know how I should set these locale I would be grateful. I try to run it on linux x64 platform.</p>