title: Using JNI libraries in an Eclipse Java project
body: <p>I have inherited a jar file with two JNI class files and related libraries (.so files). I am not familiar with c++ or JNI. How do I reference these in my Java project in Eclipse?</p>
  
  <p>So far, I have created a Java project, added the jar file as an external jar to the buildpath and then have attached the folder containing the jni libraries using Properties -> Java Build Path -> Libraries tab, expand the jar file (containing the class files) and edit "Native library location". </p>
  
  <p>I have a driver program in Java with a main method which makes the jni object. Eclipse says "ObjectName cannot be resolved to a type". </p>
  
  <p>Why would this happen even though the class files are in the build path?</p>