buildozer icon indicating copy to clipboard operation
buildozer copied to clipboard

Change the path to libjvm.so

Open ghost opened this issue 3 years ago • 7 comments
trafficstars

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?

ghost avatar Oct 13 '22 18:10 ghost

Hi @e-lunev ,

Can you please share the full log?

misl6 avatar Oct 15 '22 08:10 misl6

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'

ghost avatar Oct 15 '22 19:10 ghost

When this error is showing up?

misl6 avatar Oct 16 '22 07:10 misl6

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

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)

ghost avatar Oct 16 '22 15:10 ghost

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

Thanks in advance.

EduardoAlves1901 avatar Nov 08 '22 17:11 EduardoAlves1901

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.

github-actions[bot] avatar Nov 10 '23 08:11 github-actions[bot]

Hasty closure. Reopining.

Julian-O avatar Nov 10 '23 08:11 Julian-O