Jansi UnsatisfiedLinkError with AdoptOpenJDK 12 #5201
Unanswered
nickspevacek
asked this question in
Casks
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
When installing OpenJDK 12 and Maven casks as follows:
An
UnsatisfiedLinkError
occurs whenever Maven is run. Example frommvn -version
:It looks like the jansi library is being reloaded from a temporary path on every run when OpenJDK 12 is installed with homebrew. I was able to fix this by manually installing the OpenJDK 12 binary from GitHub and setting
JAVA_HOME
to that installation. With this method, I don't get theUnsatisfiedLinkError
, and I get the proper text highlighting when runningmvn
commands, which is what the jansi library is supposed to provide.Missing the text highlighting with
mvn
commands isn't a big deal, but thisUnsatisfiedLinkError
can cause issues with other libraries. For example, I have a project which useslocalstack
fromtestcontainers
, and thelocalstack
Docker container was unable to start up in my tests because of this issue with jansi.Relevant casks
maven, adoptopenjdk12
Beta Was this translation helpful? Give feedback.
All reactions