Can not find .jar file after installing OpenCV

advertisements

I have installed OpenCv-3.1.0 in ubuntu-14.04. When I check the installation by typing "pkg-config --modversion opencv", I get the output as "3.1.0". I think that means installation is successful. I want to use it in IntelliJ IDEA. I'm trying to add the .jar file as a library. But opencv.jar file can not be found in the bin folder.


Installation can be done as in this link. Even after installing properly, I couldn't find the needed jar file.

I was able to fix this issue by installing "Apache Ant" and proceeded again with "cmake" and "make" commands.

I think this happens because OpenCV is in C/C++ and I need it in Java. Apache Ant is a Java library and command-line tool and can also be used effectively to build non Java applications, for instance C or C++ applications. That helped to build the needed jar file.