Hi vpp-devs,
I'm trying to get VPP build (actually make verify for ci purposes) to run on
Ubuntu1804 and I've hit an issue with java:
checking /usr/lib/jvm/java-11-openjdk-arm64 for Java 8 compiler... found
version 11
...
/vpp/build-data/../extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/L2AclExample.java:37:
error: package javax.xml.bind does not exist
import javax.xml.bind.DatatypeConverter;
^
/vpp/build-data/../extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/L2AclExample.java:123:
error: cannot find symbol
System.out.println("Mask hex: " +
DatatypeConverter.printHexBinary(reply.mask));
^
symbol: variable DatatypeConverter
location: class L2AclExample
The package in question was deprecated in Java 9 and removed in Java 11, so
that's the reason for the failure.
Java 8 present on the system and Java 11 gets installed as part of dependency
installation of make verify (default-jdk-headless), so a workaround along the
lines of removing Java 11 or reconfiguring Java is not really on the table.
If we want to install default-jdk-headless as part of make install-dep, we
should be prepared for Java 11 being installed. What's the right way to fix
this? Use a package other than javax.xml.bind or modify how the build searches
for Java compilers?
Thanks,
Juraj
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11110): https://lists.fd.io/g/vpp-dev/message/11110
Mute This Topic: https://lists.fd.io/mt/27860462/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-