You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nu.pattern.OpenCV.SharedLoader.SharedLoader() diagnoses the exception by looking at the message. The message is slightly different with OpenJ9, therefore the exception is not correctly recognized and therefore falsely propagated:
The OpenJ9 VM generates this message: opencv_java342 (Not found in java.library.path)
Suggestion:
/* Only update the library path and load if the original error indicates it's missing from the library path. */
String errorFragment = String.format("no %s in java.library.path", );
if (ule == null || !(ule.getMessage().contains(Core.NATIVE_LIBRARY_NAME)
&& ule.getMessage().contains("java.library.path"))) {
logger.log(Level.FINEST, String.format("Encountered unexpected loading error."), ule);
throw ule;
}
I don't know how to bypass maven dependencies locally therefore I made no PR.
_Mark
The text was updated successfully, but these errors were encountered:
While OpenPNP is still running, search the temporary directory for the OpenCV shared library (e.g. %TEMP%\opencv_openpnp*\nu\pattern\opencv\windows\x86_64\opencv_java342.dll on Windows)
Copy the file into one of your PATH directories (I used HOMEDIR/maven/bin)
Hi
As discussed here:
https://groups.google.com/d/msg/openpnp/p2xiolO3pf0/XeOrKAXfBQAJ
we cannot use OpenJDK+OpenJ9 for OpenPNP due to some class loader issue with OpenCV.
I found the reason.
nu.pattern.OpenCV.SharedLoader.SharedLoader()
diagnoses the exception by looking at the message. The message is slightly different with OpenJ9, therefore the exception is not correctly recognized and therefore falsely propagated:opencv/src/main/java/nu/pattern/OpenCV.java
Lines 190 to 201 in fed49ee
The OpenJ9 VM generates this message:
opencv_java342 (Not found in java.library.path)
Suggestion:
I don't know how to bypass maven dependencies locally therefore I made no PR.
_Mark
The text was updated successfully, but these errors were encountered: