jeremylong / DependencyCheck

OWASP dependency-check is a software composition analysis utility that detects publicly disclosed vulnerabilities in application dependencies.
https://owasp.org/www-project-dependency-check/
Apache License 2.0
5.93k stars 1.21k forks source link

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

Open vaparnab opened 3 weeks ago

vaparnab commented 3 weeks ago

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 commented 3 weeks ago

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