Java eror
I want to install papermc on termux but there is a problem with java
Device: Redmi 5a (snapdragon 425)
Openjdk-21-JDK



1 Reply
is it proot? usually if running java as root, you are using proot or chroot, right?
could you try outside of proot using
pkg install openjdk-21
?
the reason I ask is, I that's the version of openjdk that i have put some fixes in to make it work for minecraft servers, so it is working when I test it, it should also work for you
like this
~ $ java --version
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment (build 21.0.8)
OpenJDK 64-Bit Server VM (build 21.0.8, mixed mode)
~ $ ldd $(which java) | grep libc
libc.so => /system/lib64/libc.so
~ $ java -jar paper-1.21.8-11.jar
Starting org.bukkit.craftbukkit.Main
Jul 23, 2025 9:24:51 AM org.jline.nativ.JLineNativeLoader log
WARNING: Failed to load native library:jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so. osinfo: Linux/arm64 (caused by: java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/usr/tmp/jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so: dlopen failed: library "libutil.so.1" not found: needed by /data/data/com.termux/files/usr/tmp/jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so in namespace (default), enable debug logging for stacktrace)
[09:24:53 INFO]: [bootstrap] Running Java 21 (OpenJDK 64-Bit Server VM 21.0.8; Termux null) on Linux 4.14.190-lineage-gef0cb31b13 (aarch64)
[09:24:53 INFO]: [bootstrap] Loading Paper 1.21.8-11-main@a5f2f61 (2025-07-22T08:53:33Z) for Minecraft 1.21.8
[09:24:53 WARN]: [oshi.software.os.linux.LinuxOperatingSystem] Did not find udev library in operating system. Some features may not work.
[09:24:53 ERROR]: [oshi.software.os.linux.LinuxOperatingSystem] Did not JNA classes. Investigate incompatible version or missing native dll.
... (a lot of log) ...
[09:25:18 INFO]: Default game type: SURVIVAL
[09:25:18 INFO]: Generating keypair
[09:25:18 INFO]: Starting Minecraft server on *:25565
[09:25:18 INFO]: Using default channel type
[09:25:18 INFO]: Paper: Using Java compression from Velocity.
[09:25:18 INFO]: Paper: Using Java cipher from Velocity.
[09:25:18 WARN]: [io.netty.util.internal.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: 62:62:69:80:61:5d:f2:ea
[09:25:18 INFO]: Preparing level "world"
>
~ $ java --version
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment (build 21.0.8)
OpenJDK 64-Bit Server VM (build 21.0.8, mixed mode)
~ $ ldd $(which java) | grep libc
libc.so => /system/lib64/libc.so
~ $ java -jar paper-1.21.8-11.jar
Starting org.bukkit.craftbukkit.Main
Jul 23, 2025 9:24:51 AM org.jline.nativ.JLineNativeLoader log
WARNING: Failed to load native library:jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so. osinfo: Linux/arm64 (caused by: java.lang.UnsatisfiedLinkError: /data/data/com.termux/files/usr/tmp/jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so: dlopen failed: library "libutil.so.1" not found: needed by /data/data/com.termux/files/usr/tmp/jlinenative-3.27.1-ce933a4039aef635-libjlinenative.so in namespace (default), enable debug logging for stacktrace)
[09:24:53 INFO]: [bootstrap] Running Java 21 (OpenJDK 64-Bit Server VM 21.0.8; Termux null) on Linux 4.14.190-lineage-gef0cb31b13 (aarch64)
[09:24:53 INFO]: [bootstrap] Loading Paper 1.21.8-11-main@a5f2f61 (2025-07-22T08:53:33Z) for Minecraft 1.21.8
[09:24:53 WARN]: [oshi.software.os.linux.LinuxOperatingSystem] Did not find udev library in operating system. Some features may not work.
[09:24:53 ERROR]: [oshi.software.os.linux.LinuxOperatingSystem] Did not JNA classes. Investigate incompatible version or missing native dll.
... (a lot of log) ...
[09:25:18 INFO]: Default game type: SURVIVAL
[09:25:18 INFO]: Generating keypair
[09:25:18 INFO]: Starting Minecraft server on *:25565
[09:25:18 INFO]: Using default channel type
[09:25:18 INFO]: Paper: Using Java compression from Velocity.
[09:25:18 INFO]: Paper: Using Java cipher from Velocity.
[09:25:18 WARN]: [io.netty.util.internal.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: 62:62:69:80:61:5d:f2:ea
[09:25:18 INFO]: Preparing level "world"
>