IBM / codenet-minerva-code-analyzer

Java source code (and/or binary) to JSON based system dependency graph generator.
Apache License 2.0
4 stars 6 forks source link

Code analyzer fails when `jmods` is not found #39

Closed fabio-franco closed 4 months ago

fabio-franco commented 4 months ago

That happened when openjdk 17 was installed via homebrew. Installing it manually seems to have jmods folder set. However, even without the jmods folder, the user can run a successful mvn install but it fails with Caused by: java.nio.file.NoSuchFileException: /opt/homebrew/opt/openjdk@17/jmods when running via codeanalyzer.

rahlk commented 4 months ago

Since you are using homebrew, please set JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/

odd, but this should fix it.

rahlk commented 4 months ago

closing since this has been resolved.