-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Unable to load library 'X11' with 3.3.0, fine with 3.2.7 #12
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
Comments
Are you using a libjnidispatch.so from the ubuntu system? the JNI stubs between 3.2.7 and 3.3.0 are not compatible. On Jul 15, 2011, at 10:05 AM, tulskiy wrote:
|
FYI, notice that the UnsatisfiedLinkError is caused by being unable to find the native method "com.sun.jna.Native.open(Ljava/lang/String;)J". The VM attempting to bind the Native.open method is indistinguishable from the JNI layer throwing the same exception in response to being unable to open the requested library (except for the exception message itself). On Jul 15, 2011, at 10:05 AM, tulskiy wrote:
|
Umm, I'm not using ubuntu packages. It is a maven project with java.net m2 repo. |
What do your JVM launch options look like ? I typically have both jna.library.path and java.library.path set. |
OK, I've set I guess the issue is closed, thank you. |
Here is a simple class that loads an X11 library and maps some function:
it all works fine with jna 3.2.7, but with 3.3.0, I get the following exception:
it seems to be finding the library fine, but always fails in
Native.open()
. Interface mapping fail as well. I'm running Ubuntu 10.10 32-bit.The text was updated successfully, but these errors were encountered: