Can't install opencv on mac for Java

I recently downloaded OpenCV using Homebrew, and I’m facing an issue when trying to add the library to my editor. I can’t find the .jar file as instructed in the tutorials I’ve followed online. I’ve gone through multiple tutorials, but unfortunately, I haven’t made any progress.

I have already tried brew edit opencv and set DBUILD_java to ON, but it doesn’t make any difference, I don’t have the java folder.
Can someone help me ?

please show the cmake output
(it probably did not find something, like python, ant tool, jdk, …)