termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
775 stars 160 forks source link

Java virtual machines do not run on aarch64 BIt distros #199

Closed JanuszChmiel closed 2 years ago

JanuszChmiel commented 2 years ago

Dear Proot advanced programmers, I Am running The latest version of Termux which can be downloaded from Endroid store. I have even tried to switch The Termux repository from stable to Unstable repository. But unfortunately, when executing various Java JDKs, I AM always getting The following error message.

Error: dl failure on line 894
Error: failed /usr/lib/jvm/java-7-openjdk/jre/lib/aarch64/server/libjvm.so, beca use libffi.so.7: cannot open shared object file: No such file or directory But this .so library is installed. I have tried The various versions of Java from version 7 to The 11. Does somebody of us know, why Java virtual machines can not run from chroots executed by Proot? I have enabled build in shared memory support which is The part of Proot for several months allready. I want to use Android build tools and other Android SDK tools from Chroot executed by Proot, but this strange .so error is preventing Me from doing that.

If somebody of us know The cause and if it could be corrected, please let us know about some solution.

ghost commented 2 years ago

Could you be more specific on what you are doing? What distribution do you use?

Try to upgrade packages, e.g.

apt update && apt full-upgrade

or equivalent command appropriate for your distribution.

JanuszChmiel commented 2 years ago

Dear Mr Pliush, You are really one of The mostelite Termux developers. And when I have used proot-distro install ubuntu And when I have tried to install latest available Openjdk version 17.0, no .so library error has appeared. You can close The issue, because it is The best evidence, that if someone will be using distributions installed by using Proot-distro command, that such problems will never exist. I will open next complex issue related to installing Android SDK on aarch 64 Bit architecture.