Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flyway - libjvm.dylib issue in MacOs

Tags:

macos

flyway

While I was setting up flyway on my Mac, when I tried to execute the command ./flyway info to verify all the configuration I've done properly, I used to get error saying -

libjvm.dylib” cannot be opened because the developer cannot be verified.
like image 431
Rakesh Avatar asked Oct 24 '25 12:10

Rakesh


2 Answers

To resolve the above issue, I followed below mentioned steps:-

  1. Go to JRE LIB folder of flyway installation folder - for me this path looks
    something like this - flyway-8.5.4/jre/lib

  2. Type this command find . -type f -print0 | xargs -0 xattr -d com.apple.quarantine

  3. Click cancel on the original libjvm.dylib dialog and execute the flyway command again. It should resolved the issue.

like image 58
Rakesh Avatar answered Oct 27 '25 02:10

Rakesh


If you already have a recent version of JAVA installed - you can use it instead of the one bundled with the flyway tar. For some reason, flyway prefers the bundled JRE over $JAVA_HOME, but if you rename the bundled jre folder to something else, say jre_old, and JAVA_HOME is set - it will run flyway with your local JAVA and this error would be gone.

like image 30
Pyrocks Avatar answered Oct 27 '25 01:10

Pyrocks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!