JNI IllegalAccessError
I am using JNI to call some static Java method from Rust side, but its throwing an
java.lang.IllegalAccessError
exception
the code for calling the method is nothing special:
It feels to me that the error have something to do with JVM/JNI and Java itself rather than the Rust library, I am super new to Java, so any help would be much appreciated, this is the full error (truncated):
3 Replies
⌛
This post has been reserved for your question.
Hey @Potentiometer Annihilator! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
def wrong rust lib usage
did you write any Java code?
FFM is the new way of connecting Java with native code btw
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.