OpenJDK 17 package is created as termux official package. If you want to use JavaVM on termux, please type
pkg install openjdk-17
in termux.
This repository have not JavaVM itself, but contains builder of Java system for termux.
The Java system built by this scripts is not compiled myself, that is based on other OpenJDK binary distribution and modify it to suitable for termux.
This project is inspired from https://github.com/MasterDevX/Termux-Java and https://github.com/Hax4us/java .
Supporting GUI requires too many libraries.
$ ./make_termuxjava.pl [-a arch] [-d distribution] [-v version]
-
arch is supported only
aarch64
(default),armv7
andarmv6
. -
distribution is selected from adopt (AdoptOpenJDK) or liberica (LibericaJDK). AdoptOpenJDK is recommended.
-
version is version of JDK. I tested only 8LTE and 11LTE
You get `termuxjava-jdk?-{version}-{distribution}-{arch}.tar.gz. This archive contains install script and Java system. Copy the archive to android-termux and install.
-
Download OpenJDK from AdoptOpenJDK or LibericaJDK
-
Download shared-libraries needed by JDK from archlinux ARM
-
Modify JDK binary and library for using above libraries (by PatchELF)
-
Packaging JDK, libraries, font settings and wrapper scripts.
- NetBSD 9.1-STABLE (amd64)
-
AdoptOpenJDK 8u242-b08
AdoptOpenJDK 11, and LibericaJDK 8/11 is also work basic functions, except for font handling.
- termux 0.108 on Planet Computers Cosmo Communicator (Android 9, aarch64)
- PlantUML 2021.1 (AdoptOpenJDK 8/11 only)
- pdftk-java
- sbt 1.4.5
- Gradle 6.8.1