-
Bug
-
Resolution: Done
-
High
-
18.10
-
Ubuntu 18.10
vpp git sources v18.10
openjdk-11-jdk 11.0.1+13-2
Building with:
make V=0 PLATFORM=vpp TAG=vpp pkg-deb
leads to:
...
@@@@ Building japi in /media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root/build-vpp-native/japi @@@@
make[3]: Entering directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root/build-vpp-native/japi'
Making all in java
make[4]: Entering directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root/build-vpp-native/japi/java'
JVPP GEN jvpp-registry/io_fd_vpp_jvpp_VppJNIConnection.h
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
JVPP GEN jvpp-core/io_fd_vpp_jvpp_core_JVppCoreImpl.h
JVPP GEN jvpp-acl/io_fd_vpp_jvpp_acl_JVppAclImpl.h
JVPP GEN jvpp-gtpu/io_fd_vpp_jvpp_gtpu_JVppGtpuImpl.h
JVPP GEN jvpp-pppoe/io_fd_vpp_jvpp_pppoe_JVppPppoeImpl.h
JVPP GEN jvpp-nat/io_fd_vpp_jvpp_nat_JVppNatImpl.h
JVPP GEN jvpp-nsh/io_fd_vpp_jvpp_nsh_JVppNshImpl.h
JVPP GEN jvpp-ioampot/io_fd_vpp_jvpp_ioampot_JVppIoampotImpl.h
JVPP GEN jvpp-ioamtrace/io_fd_vpp_jvpp_ioamtrace_JVppIoamtraceImpl.h
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
JVPP GEN jvpp-ioamexport/io_fd_vpp_jvpp_ioamexport_JVppIoamexportImpl.h
1 warning
1 warning
1 warning
1 warning
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
1 warning
1 warning
/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-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;
^
/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-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
/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-data/../extras/japi/java/jvpp-core/io/fd/vpp/jvpp/core/examples/L2AclExample.java:135: error: cannot find symbol
System.out.println("Match hex: " + DatatypeConverter.printHexBinary(detail.match));
^
symbol: variable DatatypeConverter
location: class L2AclExample
3 errors
1 warning
make[4]: *** [Makefile:1323: jvpp-core/io_fd_vpp_jvpp_core_JVppCoreImpl.h] Error 1
make[4]: Leaving directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root/build-vpp-native/japi/java'
make[3]: *** [Makefile:391: all-recursive] Error 1
make[3]: Leaving directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root/build-vpp-native/japi'
make[2]: *** [Makefile:691: japi-build] Error 2
make[2]: Leaving directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root'
make[1]: *** [/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-data/platforms.mk:20: install-deb] Error 1
make[1]: Leaving directory '/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/src/VPP/git-vpp/build-root'
make: *** [Makefile:490: pkg-deb] Error 2
The first error comes from the fact that Java 11 removed the Java EE modules which have been deprecated since Java 9.
Cf. https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist for details & advices.
Full build log is attached.