How can I package the opencv library into a single jar and then import that to use?

asked 2016-03-18 05:39:27 -0500

cv_new gravatar image

updated 2016-03-18 05:39:48 -0500

In the Ubuntu 12.04 platform, I created a class Foo which used the opencv library, and then I export the whole project into a jar which include all the opencv library through the Eclipse tool. Last but not least, I am going to import that previous jar in order to make good use of a Foo class. How can I do that?

Some suggested the following method, but I am not quite sure.

http://stackoverflow.com/questions/18...

edit retag flag offensive close merge delete

Comments

no, you can't do this.

opencv is a c++ library with java wrappers. apart from the opencv-XXX.jar, you will need the opencv_javaXXX.so(dll) on the path, this can't go into a jar.

berak gravatar imageberak ( 2016-03-18 06:36:38 -0500 )edit

Thank you for the answer.

cv_new gravatar imagecv_new ( 2016-03-22 00:10:21 -0500 )edit