diff options
author | Marco Varlese <marco.varlese@suse.com> | 2018-05-02 13:33:47 +0200 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-05-02 13:20:30 +0000 |
commit | cc47c2d1d4a6dc133865a7efd379d636e26bc14f (patch) | |
tree | 767e6c9e297bf293190a7d976666e8f86f925ba1 /src | |
parent | c9b6ec7f59573d07a2c0d5b55783bba540a817d0 (diff) |
Address compilation issues with Java > 1.8
This patch addresses the changes in the JDK to build headers (javah no
longer available)
Change-Id: I3e94b1cf97c8c474535c26b75ea08379338fe0af
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vpp-api/java/Makefile.am | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/vpp-api/java/Makefile.am b/src/vpp-api/java/Makefile.am index 21a18575837..321ba33cb53 100644 --- a/src/vpp-api/java/Makefile.am +++ b/src/vpp-api/java/Makefile.am @@ -71,9 +71,7 @@ jvpp-registry/io_fd_vpp_jvpp_VppJNIConnection.h: $(jvpp_registry_src_files) @echo " JVPP GEN $@" @rm -rf jvpp-registry/target @mkdir -p jvpp-registry/target - @$(JAVAC) -d jvpp-registry/target $^ - @$(JAVAH) -force -classpath jvpp-registry/target -d jvpp-registry io.fd.vpp.jvpp.VppJNIConnection - @$(JAVAH) -force -classpath jvpp-registry/target -d jvpp-registry io.fd.vpp.jvpp.JVppRegistryImpl + @$(JAVAC) -source 8 -target 8 -d jvpp-registry/target -h jvpp-registry $^ @touch jvpp-registry.ok define japigen @@ -83,11 +81,8 @@ define japigen -i $(jvpp_$(1)_json_files) @find jvpp-$(1)/target -name \*.java > jvpp-$(1).generated.files @find @srcdir@/jvpp-$(1) -name \*.java > jvpp-$(1).static.files - @$(JAVAC) -classpath jvpp-registry/target \ - -d jvpp-$(1)/target @jvpp-$(1).generated.files @jvpp-$(1).static.files - @$(JAVAH) -force \ - -classpath jvpp-registry/target:jvpp-$(1)/target \ - -d jvpp-$(1) io.fd.vpp.jvpp.$(1).$(2) + @$(JAVAC) -source 8 -target 8 -classpath jvpp-registry/target \ + -d jvpp-$(1)/target -h jvpp-$(1) @jvpp-$(1).generated.files @jvpp-$(1).static.files endef # |