Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to export a .jar file that uses openCV with eclipse?

Hello there.

I have been writing java application in eclipse for some time. It creates a frame and displays some images from the webcam on it. Also it does some image processing with openCV-methods.

The application works fine in eclipse, but now i wanted to export it as a .jar file.

So i did what i always did: File > Export > Runnable JAR file. Then i selected my launch configuration (class with main method) and had to choose one of those options:

options

when i try to run my exported .jar now, nothing happens, no frame comes up. i have tried each of the three options above and none solved the problem.

so summary: how do i correctly export a .jar file that uses openCV?

How to export a .jar file that uses openCV with eclipse?

Hello there.

I have been writing java application in eclipse for some time. It creates a frame and displays some images from the webcam on it. Also it does some image processing with openCV-methods.

The application works fine in eclipse, but now i wanted to export it as a .jar file.

So i did what i always did: File > Export > Runnable JAR file. Then i selected my launch configuration (class with main method) and had to choose one of those options:

optionsoptions: image description

when i try to run my exported .jar now, nothing happens, no frame comes up. i have tried each of the three options above and none solved the problem.

so summary: how do i correctly export a .jar file that uses openCV?

@StevenPuttemans i saw you had a similar question once, do you maybe know a solution?

How to export a .jar file that uses openCV with eclipse?

Hello there.

I have been writing java application in eclipse for some time. It creates a frame and displays some images from the webcam on it. Also it does some image processing with openCV-methods.

The application works fine in eclipse, but now i wanted to export it as a .jar file.

So i did what i always did: File > Export > Runnable JAR file. Then i selected my launch configuration (class with main method) and had to choose one of those options: image description

when i try to run my exported .jar now, nothing happens, no frame comes up. i have tried each of the three options above and none solved the problem.

in my project i have added the openCV-jar as userlibrary and in my main class i load it like this: System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

so summary: how do i correctly export a .jar file that uses openCV?

@StevenPuttemans i saw you had responded to a similar question once, do you maybe know have a solution?