title: Running android java's native libraries under linux
body: <p>I have well-working simple android app(graphically does nothing, but calculates some data), that uses native libraries, those libraries is for x86, so I am hoping to make that code work under x86 ubuntu as a simple compiled java binary.
  So after finding all library dependencies compiler tells me:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: 
  lib/libgnustl_shared.so: lib/libgnustl_shared.so: undefined symbol: __sF
  </code></pre>
  <p>After a bit googling I found that <strong>__sF</strong> is some kind of android specified parameters array, that accesible in the android env(or elsewhere, I actually don't know).
  <strong>libgnustl_shared.so</strong> depends from <strong>libm.so</strong> and <strong>libdl.so</strong>, that comes with ubuntu.</p>
  <p>Should I try to find android x86 <strong>libm.so</strong> and <strong>libdl.so</strong>? Or try to implement some how <strong>__sF</strong> in java code?</p>
  <p>(main point is to solve issue with <strong>libgnustl_shared.so</strong>, other libraries is written manually by my co-worker so I dont expect any harm from them)</p>
  <p>I hope someone has the sacred knowledge to help me make it work. Appreciate any help.</p>