Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assuming you have this folder structure:

opencv/application/Main.class
opencv/lib/opencv-300.jar
opencv/lib/x64/opencv_java300.dll

with the Main class having the package declaration "application" and your command prompt being in the folder opencv you can start the app this way:

java -cp .;lib/opencv-300.jar -Djava.library.path=lib/x64 application.Main

The "." is needed for the main class, the jar is needed for the main class, the library is needed for the jar.