详细错误:
OpenJDK Runtime Environment (build 1.8.0-uos-arm64-2020_04_23_09_54-45) OpenJDK 64-Bit Server VM (build 25.242-b45, mixed mode) ./java -jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/jdk/lib/aarch64/libnio.so: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/jdk/lib/aarch64/libnio.so)
检查一下:
strings /lib/aarch64-linux-gnu/libc.so.6 | grep GLIBC GLIBC_2.17 GLIBC_2.18 GLIBC_2.22 GLIBC_2.23 GLIBC_PRIVATE GNU C Library (Ubuntu GLIBC 2.23-0kord11k20.3) stable release version 2.23, by Roland McGrath et al.
解决办法:
升级glibc,比如自己编译。
在低版本上重新编译。