"pkg install jython"
My termux got an early install build-essential and python , pip clang gcc and debugger before . I guess u can directly try install jython. The jython package installs openjdk or the javac and java. I dont check yet if there is a jre installed .
Ports to aarch64 is looking for a another jdk when doing configure make i cant relate to that as an installer source looking for jdk? Glibc-runner not workn for me .