IBM / codenet-minerva-code-analyzer

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

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

Closed fabio-franco closed 1 month ago

fabio-franco commented 1 month 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 1 month 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 1 month ago

closing since this has been resolved.