-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Failed to get field handle to set library path" when using Java 12 #44
Comments
Hi @martinschneider, no, this isn't a known problem. This library tends to be a little bit fragile when it comes to new Java versions, so there is probably some tweaks that need to be made. If you are able to come up with a compatible fix that would be very welcome! Otherwise, I will look at this as soon as I have some time. Thanks, |
The same error for me. When I'm testing with OpenJDK 10 it is loading but I get the following warning:
|
Instead of |
I get the same error on Java 11.0.3. Problem is I need to use Java 11, so any ideas on how to fix this? |
I have some changes in the works that will hopefully solve this problem permanently. I am looking at changing how the library is loaded to the same method that JNA uses, and this should remain compatible across JDK updates. |
This at least allows simple downsampling to be used in cases where OpenCV cannot be loaded. See also openpnp/opencv#44
...as suggested in openpnp/opencv#44. This commit could be reverted if it doesn't solve issues with Java 12+.
See: openpnp/opencv#44 (comment) Fixed in: openpnp/opencv@c260ed6
Thanks a lot for fixing this! |
See: openpnp/opencv#44 (comment) Fixed in: openpnp/opencv@c260ed6
Two questions:
1. What operating system?
2. Can you show a log of the error happening?
Thanks,
Jason
…On Tue, Feb 16, 2021 at 2:59 PM Ivan ***@***.***> wrote:
I am still getting this error in JDK15 with Gradle, OpenCV 4.3.0-3. I
would be very thankful for some assistance. Thank you.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#44 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJAU47TLZHR6UPD5XTHVNDS7LMCJANCNFSM4HIJVQUA>
.
|
When calling
OpenCV.loadShared();
:I think the problem lies in this line but I'm not entirely sure how to fix it.
Is this a known issue?
The text was updated successfully, but these errors were encountered: