Ask Your Question
0

I do not find opencv jar file to work in eclipse linux

asked 2013-05-20 09:06:00 -0600

emre gravatar image

I downloaded opencv 2.4.5 for linux and I wanted to use on eclipse IDE, I examined java guide its website, and according to that guide I must create user library and add external jar file which opencv-2.4.5.jar named.Although I did not find this jar file. How can I do to work in Eclipse on Linux ?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-11-29 09:30:26 -0600

NingZhou gravatar image

First, go to this link http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html#java-dev-intro , then follow the instruction, until you type "make -j8"(include this command).

mark this carefully in the link:Besides all this will create a jar containing the Java interface (bin/opencv-244.jar) and a native dynamic library containing Java bindings and all the OpenCV stuff (lib/libopencv_java244.so or bin/Release/opencv_java244.dll respectively). We’ll use these files later.

You may confuse when you follow the ecllipse java setup instruction link:http://docs.opencv.org/doc/tutorials/introduction/java_eclipse/java_eclipse.html#java-eclipse

Especially when you see this figure, You may wonder where to find the jar and the Native library location. image description.

Jar is in build/bin/, Native libary location your should choose build/lib. This is my setup snapshot:image description

That is all. Remember that after you download the sourcecode, you need to build it, otherwise you won't get the /build directory. I don't have tried setup this at Windows, but I think the .exe file will make the /build directory existed for you. Probably that is why the instruction take it for granted, which is not the case for linux user.

edit flag offensive delete link more

Comments

I followed the exact steps but still I am unable to locate JAR files. Although the JAVA_HOME variable is set, I don't see jar files anywhere.

Genom gravatar imageGenom ( 2016-01-16 09:24:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-05-20 09:06:00 -0600

Seen: 3,772 times

Last updated: Nov 29 '13