Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Missing Dependency: org.jnetpcap:jnetpcap:1.4.1 for CICFlowMeter on Ubuntu 22.04 or compatible Linux distribution #171

Open
avnishs17 opened this issue Dec 20, 2024 · 0 comments

Comments

@avnishs17
Copy link

Resolving Missing Dependency: org.jnetpcap:jnetpcap:1.4.1 for CICFlowMeter on Ubuntu 22.04 or compatible Linux distribution

This guide outlines the steps to resolve the missing dependency org.jnetpcap:jnetpcap:1.4.1 when building the CICFlowMeter project on Ubuntu 22.04.

Steps

  1. Clone the Repository

    git clone https://github.com/ahlashkari/CICFlowMeter.git
    cd CICFlowMeter/jnetpcap/win/jnetpcap-1.4.r1425
    mvn install:install-file -Dfile=jnetpcap.jar -DgroupId=org.jnetpcap -DartifactId=jnetpcap -Dversion=1.4.1 -Dpackaging=jar
    cd 
    cd CICFlowMeter
  2. Make Gradle Wrapper Executable (if necessary)

    chmod +x gradlew
  3. Update build.gradle

    • Open build.gradle in your preferred editor
    • Locate the jnetpcap dependency (around line 20)
    compile group: 'org.jnetpcap', name: 'jnetpcap', version:'1.4.1'
    • Replace this existing dependency with:
    compile group: 'org.jnetpcap', name: 'jnetpcap', version: '1.4.r1425-1g'
  4. Build the Project

    ./gradlew execute  

Troubleshooting

Common Issue

  1. Permission Denied
    If you encounter permission issues:
    sudo chmod +x gradlew

Reference: https://stackoverflow.com/questions/61939324/issue-java-gradle-could-not-find-org-jnetpcapjnetpcap1-4-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant