Hi, I used VPP 17.01 stabe, When I install VPP via ./buid.sh every thing is OK. but when I make snat plugin independently from its own directory, I see following error:
dir=`pwd`; \ mkdir -p snat/jvpp/target; \ mkdir -p snat/jvpp/io/fd/vpp/jvpp/snat; \ cd snat/jvpp/io/fd/vpp/jvpp/snat; \ mkdir -p dto future callfacade callback notification test; \ ./../../vpp-api/java/jvpp/gen/jvpp_gen.py -i ${dir}/snat.api.json --plugin_name snat; \ cd -; \ mv -f snat/jvpp/io/fd/vpp/jvpp/snat/jvpp_snat_gen.h snat/jvpp/jvpp_snat_gen.h; \ cp ./snat/jvpp/io/fd/vpp/jvpp/snat/test/*.java snat/jvpp/io/fd/vpp/jvpp/snat/test/; \ cd snat/jvpp; \ /usr/lib/jvm/java-8-openjdk-amd64//bin/javac -classpath .:target:../../../../vpp-api/java/jvpp-registry-17.01.jar -d target io/fd/vpp/jvpp/snat/*.java \ io/fd/vpp/jvpp/snat/dto/*.java \ io/fd/vpp/jvpp/snat/callback/*.java \ io/fd/vpp/jvpp/snat/notification/*.java \ io/fd/vpp/jvpp/snat/future/*.java \ io/fd/vpp/jvpp/snat/callfacade/*.java \ io/fd/vpp/jvpp/snat/test/*.java \ || (echo "snat jvpp compilation failed: $?"; exit 1); \ /usr/lib/jvm/java-8-openjdk-amd64//bin//javah -classpath .:target:../../../../vpp-api/java/jvpp-registry-17.01.jar -d . io.fd.vpp.jvpp.snat.JVppSnatImpl ; /bin/bash: line 5: ./../../vpp-api/java/jvpp/gen/jvpp_gen.py: No such file or directory /root/vpp/plugins/snat-plugin mv: cannot stat ‘snat/jvpp/io/fd/vpp/jvpp/snat/jvpp_snat_gen.h’: No such file or directory cp: ‘./snat/jvpp/io/fd/vpp/jvpp/snat/test/CallbackApiTest.java’ and ‘snat/jvpp/io/fd/vpp/jvpp/snat/test/CallbackApiTest.java’ are the same file javac: file not found: io/fd/vpp/jvpp/snat/*.java Usage: javac <options> <source files> use -help for a list of possible options snat jvpp compilation failed: 2 Error: Could not find class file for 'io.fd.vpp.jvpp.snat.JVppSnatImpl'. make: *** [snat/jvpp/io_fd_vpp_jvpp_snat_JVppSnatImpl.h] Error 1 Best Regards, Juan Salmon.
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev