'openjdk@8 java is loading libcrypto in an unsafe way in macOS Monterey
I'm getting this error when running some mvn test on my Java application in macOS Monterey
WARNING: /usr/local/Cellar/openjdk@8/1.8.0+322/libexec/openjdk.jdk/Contents/Home/bin/java is loading libcrypto in an unsafe way
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
Any ideas how to resolve?
Solution 1:[1]
The following solved the issue for me:
- Install the latest version of openssl
brew install openssl
- Make
libcrypto.dylib
andlibssl.dylib
visible when you execute java
ln -s /usr/local/Cellar/openssl@3/3.0.3/lib/libcrypto.dylib /usr/local/lib/libcrypto.dylib
ln -s /usr/local/Cellar/openssl@3/3.0.3/lib/libssl.dylib /usr/local/lib/libssl.dylib
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | alegria |