You are not logged in.
Pages: 1
Hi,
since some time I get the following error:
/usr/lib/jvm/java-17-jdk/bin/jar -tf /dev/zero
Error: Unable to load main class sun.tools.jar.Main in module jdk.jartool
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-17-jdk/lib/libnio.so: /usr/lib/jvm/java-17-jdk/lib/libnio.so: undefined symbol: ipv6_available
This happens for different jar files and even for /dev/zero.
kernel: 5.14.12-arch1-1,
jre, jdk: 17-1
I could not find where the symbol: ipv6_available is supossed to be
defined.
kernel: 5.14.12-arch1-1, jre, jdk 17-1
I tried downgrading jdk and jre to 16-1, but no difference.
Offline
It looks like that your java installation is flawed or misconfigured.
Avoid executing the 'jar' executable directly with the full path specification.
Instead, manage your JVMs with archlinux-java and execute the desired binary without the full path.
For example:
# archlinux-java set java-17-openjdk
$ jar --version
Offline
Thanks for the information.
That is what I tried in the first place.
Then I just wanted to make sure which java is used.
I found now that it works with jdk-openjdk.
Offline
I found how to work around: https://aur.archlinux.org/packages/eclipse-java/#news
I needed to add the server path to the LD_LIBRARY_PATH.
Offline
Pages: 1