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

java.lang.ClassNotFoundException: org.owasp.dependencycheck.App #6628

Open
vaparnab opened this issue Apr 25, 2024 · 1 comment
Open

java.lang.ClassNotFoundException: org.owasp.dependencycheck.App #6628

vaparnab opened this issue Apr 25, 2024 · 1 comment
Labels

Comments

@vaparnab
Copy link

New installation in ec2 gives this error.
Followed steps from https://jeremylong.github.io/DependencyCheck/dependency-check-cli/index.html

/usr/bin/dependency-check.sh --version
Error: Could not find or load main class org.owasp.dependencycheck.App
Caused by: java.lang.ClassNotFoundException: org.owasp.dependencycheck.App

Java version in 21.0.2

@aikebah
Copy link
Collaborator

aikebah commented Apr 27, 2024

It would be an anti-pattern to unpack the CLI zip in /usr

So my guess would be you misread the instructions and moved the shellscript to /usr/bin instead of putting the bin folder of the extracted CLI distribution on the PATH environment variable

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

No branches or pull requests

2 participants