java directory not found under /usr/local/Cellar/opencv - Macos Big Sur Installation
Hi, Following this article to install opencv in macos Big Sur, i get the installation success but not found the java directory under this path /usr/local/Cellar/opencv/4.5.3_2/share.
Original Error
java.lang.UnsatisfiedLinkError: no opencv_java453 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at FaceDetectionImage.
Kindly suggest.
I have the same problem and I'm also running on MacOS Big Sur w/ M1. I'm not able to find the jar file under the given path
I've tried finding it through my Finder and only get up till /usr/local/Cellar/opencv/4.5.3_2/share before things go wrong
Edit: I found my error. I realized I originally didn't save edits to -DBUILD_opencv_java=ON before I installed w/ brew install --build-from-source opencv . I deleted OpenCV and re-installed. Also, it may be useful for you to check your /opt/homebrew/Cellar/opencv/4x.x.x_x: directory, the jar file might be there
I would like to add that I have this error as well, -DBUILD_opencv_java=ON was set, and ant is already installed. MacOS 12.6.3