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

Change the path to libjvm.so #1514

Open
ghost opened this issue Oct 13, 2022 · 7 comments
Open

Change the path to libjvm.so #1514

ghost opened this issue Oct 13, 2022 · 7 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2022

SystemError: Error calling dlopen(b'/usr/java/jre1.8.0_333/jre/lib/amd64/server/libjvm.so': b'/usr/java/jre1.8.0_333/jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory'

I need to change on /usr/java/jre1.8.0_333/lib/amd64/server/libjvm.so

How can I do it?

@misl6
Copy link
Member

misl6 commented Oct 15, 2022

Hi @e-lunev ,

Can you please share the full log?

@ghost
Copy link
Author

ghost commented Oct 15, 2022

Traceback (most recent call last):
File "/home/kali/Desktop/android.py", line 1, in
from jnius import autoclass
File "/home/kali/.local/lib/python3.10/site-packages/jnius/init.py", line 13, in
from .reflect import * # noqa
File "/home/kali/.local/lib/python3.10/site-packages/jnius/reflect.py", line 14, in
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/java/jre1.8.0_333/jre/lib/amd64/server/libjvm.so': b'/usr/java/jre1.8.0_333/jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory'

@misl6
Copy link
Member

misl6 commented Oct 16, 2022

When this error is showing up?

@ghost
Copy link
Author

ghost commented Oct 16, 2022

Когда появляется эта ошибка?

python android.py

from jnius import autoclass
PythonActivity = autoclass('org.renpy.android.PythonActivity')
activity = PythonActivity.mActivity
Context = autoclass('android.content.Context')
vibrator = activity.getSystemService(Context.VIBRATOR_SERVICE)
vibrator.vibrate(10000)

@EduardoAlves1901
Copy link

Hello,
I'm also getting this error. Any news about this?

Thanks in advance.

Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@Julian-O
Copy link
Contributor

Hasty closure. Reopining.

@Julian-O Julian-O reopened this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

3 participants