title: Loading a dynamic C shared library using JNI which also loads another shared library
body: <p>Using JNI on Java eclipse (Linux), I am loading a dynamic shared library called <strong>first.so</strong>.
  So far all goes well.
  The problems being, that <strong>first.so</strong> also loads a dynamic library called <strong>second.so</strong>.</p>
  
  <p>When running the program I am getting many "undefined symbol" errors regarding symbols located in <strong>second.so</strong>.</p>
  
  <p>It seems that a library loaded using JNI cannot load other C libraries on run-time because we are in a Java environment. Is my assumption correct?
  Do I need special compile flags to compile the <strong>first.so</strong> library or is it special arguments to tell eclipse that it will be trying to load an .so during runtime?</p>
  
  <p>Thanks in advance!</p>