title: How to Use OpenCV for Java in Netbeans-Ubuntu
body: <p>I am trying to develop a small project in java for image keypoint recognition and matching to compare images using OpenCv library in Netbeans. i installed openCV-3.1.0 and add a New Library in netbeans named as OpenCV giving classpath<code>as "/home/shoaib/opencv-3.1.0/build/bin/opencv-310.jar"</code>. Then i right click on my netbeans project and add opencv library in "Libraries". In Run opton i gave <code>VM Options as "java -Djava.library.path="/home/shoaib/opencv-3.1.0/build/bin/opencv-310.jar"</code>
  also tried <code>java -Djava.library.path="/home/shoaib/opencv-3.1.0/build/bin/"</code></p>
  
  <p>when i compile my programme it compiled successfullly and shows</p>
  
  <pre><code>Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
  </code></pre>
  
  <p>but when i run my java programme it gives error:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java310 in java.library.path
  </code></pre>
  
  <p>error is at line <code>System.loadLibrary(Core.NATIVE_LIBRARY_NAME);</code></p>
  
  <p>i googled it a lot but couldn't resolve my problem.Can anyone help me?? i am beginner to java and openCV.</p>