opencv version --> 2.4.10
-Select project, right click on "Properties". -Select "Run" option, Change VM options to add native library "-Djava.library.path="C:\opencv\build\java\x86" . -If you have a 32-bit system, you need to select the x86 folder instead of x64.
for open video (mp4 etc.) add Path ;C:\opencv2.4.10\opencv\build\x64\vc12\bin;
in Windows OS;
- From the desktop, right-click My Computer and click Properties.
- In the System Properties window, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
- Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below. Restart PC!