title: JNI problems with a shared object
body: <p>well i am having problems with jni, i am trying to run an example code
  i have in one side </p>
  
  <pre><code>HelloJNI.java
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>javatoc_HelloJNI.h
  </code></pre>
  
  <p>and in the other side in c</p>
  
  <pre><code>HelloJNI.cpp
  </code></pre>
  
  <p>all is fine until I try to make the .so
  it gives me this error.</p>
  
  <pre><code>**/usr/bin/ld: error: /tmp/cc2Udvjs.o: requires dynamic R_X86_64_32 reloc which may                overflow at runtime; recompile with -fPIC**
  </code></pre>
  
  <p>so i am practically stuck in the creation of a .SO
  Thanks for your help </p>