There's actually a JIRA ticket opened for this, so it seems I'm not the only one who's looking for a solution: https://jira.fd.io/browse/VPP-1477
Juraj From: Juraj Linkeš [mailto:juraj.lin...@pantheon.tech] Sent: Monday, November 5, 2018 5:36 PM To: vpp-dev <vpp-dev@lists.fd.io> Cc: sirshak....@arm.com Subject: [vpp-dev] Faulty java version check for JVPP GEN 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 (#11143): https://lists.fd.io/g/vpp-dev/message/11143 Mute This Topic: https://lists.fd.io/mt/27860462/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-