Seed the jnetpcap jar into your local Maven cache using the artifact that matches your platform:
mvn install:install-file \
-Dfile=/path/to/jnetpcap.jar \
-DgroupId=org.jnetpcap \
-DartifactId=jnetpcap \
-Dversion=1.4.1 \
-Dpackaging=jarOpen a terminal inside the IDE:
export JNETPCAP_NATIVE_PATH=/path/to/native/lib/dir # contains your libjnetpcap.*
./gradlew executeElevated privileges may still be required to access capture devices (sudo on macOS).
- Right click
App.java→ Run As → Run Configurations → Arguments → VM arguments:
-Djava.library.path=/path/to/native/lib/dir - Run the configuration.
./gradlew distZipThe archive is created under CICFlowMeter/build/distributions.
mvn packageThe jar is produced in CICFlowMeter/target.