title: Java - I've got a library(.a/.so) and header(.h), how to use Java call their functions?
body: <p>Someone sent me his static library(lib.a) and a header file(lib.h) it should be written in C++, I've used gcc compiler to convert the static library(lib.a) into a shared library(.so). Now I want to use Java to call library to use it's functions.</p>
  
  <p>I have tried System.load and System.loadLibrary but I don't know how to call it's functions. For example, I've see there is a function call MoveFront(int) from the header file and it will return the integer for the status.</p>
  
  <pre><code>extern int MoveFront(int);
  </code></pre>
  
  <p>There's a way to do that? Thank you.</p>
  
  <p>I am using Ubuntu 13.10, JDK 1.8.0_20, gcc 4.6.3.</p>