Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It is simple, you can do it like this:

Warn: before you go to next step, first ensure that you already have Java installed and it is present in your environment path. And also you have the OpenCV native lib in your environment path

  1. javac -cp .:path/to/opencv3xx.jar YourJavaFile.java If everything goes well, then it will generate .class files, then:
  2. java -cp .:path/to/opencv3xx.jar YourJavaFile.class here .class extension is optional.

And it is that.

It is simple, you can do it like this:

Warn: before you go to next step, first ensure that you already have Java installed and it is present in your environment path. And also you have the OpenCV native lib in your environment path

  1. javac -cp .:path/to/opencv3xx.jar .:path/to/opencv3xx.jar YourJavaFile.java If everything goes well, then it will generate .class .class files, then:
  2. java -cp .:path/to/opencv3xx.jar YourJavaFile.class YourJavaFile.class here .class .class extension is optional.

And it is that.

It is simple, you can do it like this:

Warn: before you go to next step, first ensure that you already have Java installed and it is present in your environment path. And also you have the OpenCV native lib in your environment path

  1. javac -cp .:path/to/opencv3xx.jar.:path/to/opencv3xx.jar YourJavaFile.java YourJavaFile.java If everything goes well, then it will generate .class files, then:
  2. java -cp .:path/to/opencv3xx.jar YourJavaFile.class here .class extension is optional.

And it is that.