title: Tess4J - Native library (linux-x86-64/libtesseract.so) not found in resource path
body: <p>I'm using Tess4J (JNA wrapper around tesseract), and trying to call <code>tess.doOCR(myFile)</code> to OCR text from a single-page PDF.</p>
  
  <p>I have GhostScript installed (by using <code>yum install ghostscript</code>), <code>gs -h</code> works correctly.</p>
  
  <p>My app server is using <code>64-bit JVM</code>, and I have <code>gsdll64.dll</code>, and the 64-bit tesseract dll's <code>liblept168.dll</code> and <code>libtesseract302.dll</code> in the class path.</p>
  
  <p>When <code>tess.doOCR(myFile)</code> is called, this is logged:</p>
  
  <pre><code>GPL Ghostscript 8.70 (2014-09-22)
  Copyright (C) 2014 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Processing pages 1 through 1.
  Page 1
  </code></pre>
  
  <p>But then it just stops there. The program doesn't go any further.</p>
  
  <p><strong>UPDATE --</strong></p>
  
  <p>It looks like the real issue is from this error: </p>
  
  <p><code>java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (linux-x86-64/libtesseract.so) not found in resource path</code></p>
  
  <p>After looking around a lot, I don't see a convenient place to find this <code>libtesseract.so</code> file, and I'm not sure what it takes to get this onto my Linux app server. I read that maybe I need to download some C++ runtime, but I don't see a Linux download for that. Any advice would be much appreciated.</p>
  
  <p>Or is this something to do with a symbolic link?</p>