title: !strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 209
body: <p>The example codes for running Tess4j has been given in "<a href="http://tess4j.sourceforge.net/codesample.html" rel="nofollow noreferrer">http://tess4j.sourceforge.net/codesample.html</a>," however it was performed in Mac OS in intellij, error message came up with <code>!strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp, line 209</code> with the below messages:</p>
  
  <pre><code>A fatal error has been detected by the Java Runtime Environment:
  SIGILL (0x4) at pc=0x000000012183ca4f, pid=44026, tid=0x0000000000001903
  JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
  Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode bsd-amd64  compressed oops)
  Problematic frame:
  C [libtesseract.dylib+0x156a4f] ERRCODE::error(char const*, TessErrorLogCode, char const*, ...) const+0x183
  </code></pre>
  
  <p>By my reading of the above posts, it appears to be an issue with exporting LC_ALL=C, but not sure, in the example codes given, what exact codes should be added/amend, to make that example to run?</p>