Open jlegrand62 opened 6 years ago
Thanks, Jon, Definitely worth looking into. I will see if I can find some time to replicate and fix. --Lee
I ran into this issue as well, and thanks for pointing out the fix. I also wanted to find a way to support older Java versions and found that I could add an empty string as another element to arches
so that libjvm.so
could be found in new or old configurations.
I failed to install javabridge both by pip and a python install using a clone of this GitHub repo. I am using
OpenJDK-11
on Ubuntu18.04 LTS. Here is the error message:This error message not being too helpful, I started digging and I realized that it is failing to find
libjvm.so
in the functionfind_jre_bin_jdk_so()
(inlocate.py
) and it returnsNone
forjvm_so
, as highlighted by the previous error message. Modifying thelocate.py
python script I got the following list of directories in which it is searching forlibjvm.so
:However a search on my computer indicate this location:
/usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
. Apparently, they removed the architecture sub-directory in this latest version of OpenJDK. In my case, replacing the line 231 inlocate.py
(find_javahome()
definition):by:
and changing line 124 in
locate.py
(find_jre_bin_jdk_so()
definition):by:
allowed the install process to succeed!
Hope that helps. Thanks for the work!