Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Java for a multiplatform app

Hi,

I'm trying to create a multiplaform app with OpenCV. The Java Support was pretty much a good news for me :)

I've install OpenCV, create a first app on windows and i'm trying to make an executable jar. But i suppose i'll have a lot of problem thanks to the dll...

I've create in Eclipse a jar who include all the libraries needed. If a create a new project on windows, import my new jar, i can create object declared in my jar but when i run :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244 in java.library.path

And if i do the same thing on a RedHat, i've also an error :

Exception in thread "main" java.lang.NoClassDefFoundError: org/opencv/highgui/Highgui
    at core.Ident.ident(Ident.java:84)
    at Main.main(Main.java:13)

(Ident.java:84 is the first line using an OpenCV command)

Would anyone have a tips or a link to a good step-by-step of creating a multiplatform runnable Jar in eclipse with Open CV in it ?

Thanks in advance/

click to hide/show revision 2
Found another way to do the same thing, but i still have a problem to do a multiplatform app

OpenCV Java for a multiplatform app

Hi,

I'm trying to create a multiplaform app with OpenCV. The Java Support was pretty much a good news for me :)

I've install OpenCV, create a first app on windows and i'm trying to make an executable jar. But i suppose i'll have a lot of problem thanks to the dll...

I've create in Eclipse a jar who include all the libraries needed. If a create a new project on windows, import my new jar, i can create object declared in my jar but when i run :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244 in java.library.path

And if i do the same thing on a RedHat, i've also an error :

Exception in thread "main" java.lang.NoClassDefFoundError: org/opencv/highgui/Highgui
    at core.Ident.ident(Ident.java:84)
    at Main.main(Main.java:13)

(Ident.java:84 is the first line using an OpenCV command)

Would anyone have a tips or a link to a good step-by-step of creating a multiplatform runnable Jar in eclipse with Open CV in it ?

Thanks in advance/advance.

Edit : So... after a day of trying... i havn't succeed with that. But i've found an other way to do it : in eclipse, i've create a dependance between the two project. This way, when i build my project, the dll are found :)

But i still have a problem... how to deal with the dll ? Remember, i want to create a multiplatform app thank's to the java support, and i havn't found any .so files =/