OpenCV-JavaCV : eclipse project configuration windows 7

NOTE: A Easier and Simpler version of the installation step is available !!  Check the latest ( Jan , 2017) article.


Eclipse (windows 7) project setup for JNA wrapper of OpenCV : JavaCV - getting started.

OpenCV (Open Source Computer Vision Library) is library of programming functions for real time computer vision.  JavaCV provides wrappers to commonly used libraries for OpenCV and few others.

Download the Essentials :

                  Microsoft Visual C++ 2010 Redistributable Package (x86)
                  Microsoft Visual C++ 2010 Redistributable Package (x64) (If your system is 64 bit)

Installation Steps:

1) Install Microsoft Visual C++ Redistributable Packages. DON'T install x86-bit version if you have x64-bit computer.
2) Extract OpenCV-**-win-superpack.exe inside the root directory C:\
3) Configure path: Add the following environment variables in system path (Make Sure that the folder path is correct)
64-bit version of the JDK:
32-bit version of the JDK:

4) Extract the javacv-** and add the .jar files (match with the version of your system) to build path of eclipse project.
Eclipse Project Structure :

Creating javacv eclipse project:

  1. If the above installations are correctly done and environment variables are set properly... 
  2. Create a java project on eclipse as usual and don't forget to add the .jar to build path (described in step 4 above)...
  3. Goto here  for test code
  4. Run the project..
  5. Everything should work fine..

Environment Variable configuration:

Right Click on My Computer -> choose properties -> choose Advance System Settings -> choose Environment Variables and follow following steps 1,2,3 as in image
OpenCV/JavaCV resources :


Don't forget to see posts about JavaCV and Image Processing here :