Search code examples
javacompilationraspberry-pijavacv

javacv runnable.jar have error when running it in rasberry pi


i have compile GUI javacv code in windows and it run ok with no problem and when i run the runnable.jar file in raspberry pi it give me this error and doesnt run

java.lang.unsatisfiedlinkerror: no jniopencv_core in java.library.path


Solution

  • This means that an opencv.jar file is missing from your raspberry pi's classpath (or is the wrong version).

    See if you have the latest version, and/or the linux version needed for the PI*, then either include both in the /lib of your project or make sure it is added to the java classpath on your PI.

    *The lib you use on your windows development environment is not compatible with the PI. You need a linux version (or the Android version, depending which is running on the PI) for the PI, and a windows version to run on Windows.

    These can be downloaded from: http://sourceforge.net/projects/opencvlibrary/files