for linux, sudo is a prerequisite
//linux :at the pathtoproject/jnetpcap/linux/jnetpcap-1.4.r1425
//windows: at the pathtoproject/jnetpcap/win/jnetpcap-1.4.r1425
mvn install:install-file -Dfile=jnetpcap.jar -DgroupId=org.jnetpcap -DartifactId=jnetpcap -Dversion=1.4.1 -Dpackaging=jar
open a Terminal in the IDE
//linux:
$ sudo bash
$ gradle execute
//windows:
$ gradlew execute
Run eclipse with sudo
1. Right click App.java -> Run As -> Run Configurations -> Arguments -> VM arguments:
-Djava.library.path="pathtoproject/jnetpcap/linux/jnetpcap-1.4.r1425" -> Run
2. Right click App.java -> Run As -> Java Application
open a Terminal in the IDE
//linux:
$ gradle distZip
http://www.scitepress.org/DigitalLibrary/PublicationsDetail.aspx?ID=g4gLnPa/2OM=&t=1
//window
$ gradlew distZip
the zip file will be in the pathtoproject/CICFlowMeter/build/distributions
At the project root
mvn package
the jar file will be in the pathtoproject/CICFlowMeter/target