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

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

cv_new gravatar image

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-04 02:32:02.634305

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 -0600 )edit

Thank you for the answer.

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