title: How to build OpenCV with Java under Linux using command line?(Gonna use it in MapReduce)
body: <p>Recently I'm trying OpenCV out for my graduation project.
  I've had some success under Windows enviroment. And because with Windows package of OpenCV it comes with pre-built libraries, so I don't have to worry about how to build them.
  But since the project is suppose to run on a cluster with CentOS as host OS for each node, I have to know how to correctly compile, and run these library under Linux enviroment.</p>
  
  <p>I've set up a VM with VirtualBox and installed Ubuntu 13.04 on it.
  But so far I still can't find a way to adjust the settings of CMakeList to make Java a build target. (A jar, and a native library so I can import and use them in MapReduce program)
  Following is the official tutorial of desktop Java for OpenCV</p>
  
  <p><a href="http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html" rel="noreferrer">http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html</a></p>
  
  <p>The part about the compiling is pretty brief. So I still can't quite understand it.
  Is it because I missed some dependency for Java? I've already got JVM(Jre-7u7) installed.
  Or is it because I didn't configure CMakeList.txt correctly?</p>
  
  <p>Here is the things I've done so far, other than that it's a complete clean Ubuntu</p>
  
  <ol>
  <li>Installed vim</li>
  <li>Installed g++</li>
  <li>Installed cmake</li>
  <li>installed cmake-curses-gui</li>
  <li>installed java7 JVM</li>
  <li>download OpenCV package for Linux</li>
  </ol>
  
  <p>The target enviroment is Cluster with CentOS as host OS for each node, and the project is a MapReduce program.</p>
  
  <p>Thanks in advance.</p>