Skip to content
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 cannot open shared object file: Not a directory #734

Open
9acca9 opened this issue Sep 28, 2024 · 1 comment
Open

libjvm.so cannot open shared object file: Not a directory #734

9acca9 opened this issue Sep 28, 2024 · 1 comment

Comments

@9acca9
Copy link

9acca9 commented Sep 28, 2024

hi
im getting this error while running a kivy app.
Running in a ubuntu 22.04.

Thanks

 Traceback (most recent call last):
   File "/home/panchines/Documents/main.py", line 24, in <module>
     from jnius import autoclass
   File "/home/panchines/.local/lib/python3.10/site-packages/jnius/__init__.py", line 13, in <module>
     from .reflect import *  # noqa
   File "/home/panchines/.local/lib/python3.10/site-packages/jnius/reflect.py", line 14, in <module>
     class Class(with_metaclass(MetaJavaClass, JavaClass)):
   File "/usr/lib/python3/dist-packages/six.py", line 872, in __new__
     return meta(name, resolved_bases, d)
   File "jnius/jnius_export_class.pxi", line 43, in jnius.MetaJavaClass.__new__
   File "jnius/jnius_export_class.pxi", line 65, in jnius.MetaJavaClass.resolve_class
   File "jnius/jnius_env.pxi", line 11, in jnius.get_jnienv
   File "jnius/jnius_jvm_dlopen.pxi", line 90, in jnius.get_platform_jnienv
   File "jnius/jnius_jvm_dlopen.pxi", line 59, in jnius.create_jnienv
 SystemError: Error calling dlopen(b'/usr/lib/jvm/java-17-openjdk-amd64/bin/java/jre/lib/amd64/server/libjvm.so': b'/usr/lib/jvm/java-17-openjdk-amd64/bin/java/jre/lib/amd64/server/libjvm.so: cannot open shared object file: Not a directory'


locate libjvm.so
/usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
/usr/share/gdb/auto-load/usr/lib/jvm/java-17-openjdk-amd64/jre/lib/server/libjvm.so-gdb.py

it is in a different place. I dont know how change that.
thanks
EDIT: This seems related.
#209
#428

@9acca9 9acca9 changed the title $JAVA HOME, error?? libjvm.so cannot open shared object file: Not a directory Sep 28, 2024
@9acca9
Copy link
Author

9acca9 commented Oct 5, 2024

So, nobody else is having this error?
Can you share where you have installed this?
Im using a VM, so i can change to what works better or avoid "problems" with installation.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant