A java/groovy sdk using f-stack by jni.
- java17
- gradle7.x+
- dpdk22.11
- f-stack
-
- cd workspace/f-stack-java-sdk
-
- gradle jar && mkdir output && cp build/libs/ff_jni.jar output/
-
- gradle prepare
-
- cd src && java -jar javacpp-1.5.9.jar -Dplatform.linkpath=/usr/local/lib/x86_64-linux-gnu -Dplatform.link=fstack ff/Invoker.java
-
- cd .. && gradle cleanJNISo
-
- cd sample && gradle jar
-
- cp ../output/*.so ./build/libs
-
- cp ${F-STACK}/lib/libfstack.so ./build/libs
-
- cp ${F-STACK}/config.ini ./build/libs
-
- cd build/libs && java -Djava.library.path=. -jar sample.jar --procType=primary --procId=0 --server --http --port=8080