-
Notifications
You must be signed in to change notification settings - Fork 254
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
libjvm.so is looked for in the wrong place #428
Comments
You need to set Line 154 in afd9b42
|
Why do I need to set it at all? Why not take the java(c) that's in the PATH my default? |
Oh wait. It does. Neither is the problem here! The problem is the additional |
You need to rebuild the package with I kept running into this issue too until I dug through the source and found that the path to libjvm.so gets baked in during compilation (try running See here: pyjnius/jnius/jnius_jvm_dlopen.pxi Lines 48 to 53 in 61149f2
|
Closing as i believe this to be fixed, let us know if you still have issues. |
Just commenting: the PR you linked only changes a single line of whitespace. Wrong PR? |
indeed that was #444 thanks for pointing out. |
I am having the same issue with the most recent version, even after setting both In my case pyjnius is looking in
but the actual path is
I tried adding
|
I am also having an issue. This is a dependency for something else I'm trying to install. My $JAVA_HOME and $JDK_HOME are correctly set. When I go to the path they point to and look for libjvm I see: $ find . -name "libjvm*" No "server" directory at all. SystemError: Error calling dlopen(b'/usr/lib/jvm/java-1.8.0-ibm-1.8.0.6.5-1jpp.1.el7.x86_64/lib/server/libjvm.so': b'/usr/lib/jvm/java-1.8.0-ibm-1.8.0.6.5-1jpp.1.el7.x86_64/lib/server/libjvm.so: cannot open shared object file: No such file or directory' Is the problem my Java version or something else? |
#520 for a tentative fix + workaround I added the paths you both reported, and added a system to override the value through a non standard JVM_PATH en var if that doesn't work, with a message encouraging people to report working values, hopefuly it'll allow us to understand what paths are actually used in the wild. edit: test wheels can be found here https://github.com/kivy/pyjnius/releases/tag/issue_428-test |
closing as i hope this to be fixed, if the error happens again, please open a new issue refering to this one. |
On travis, even with
JAVA_HOME
set, the library is not found.It is actually in:
But pyjnius looks in:
The text was updated successfully, but these errors were encountered: