tab
tab

Reputation: 19

Java on macOS: "cannot open JVM dynamic library" despite the file exists

when starting a java program I get the following error message:

Cannot open JVM dynamic library
Dynamic library location: /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/lib/libjli.dylib

But the file exists:

-rw-r--r--  1 root  wheel  97616 17 Jan 06:40 /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/lib/libjli.dylib

The issue occured when I updated the java program itself. Older version of this java program still work. The developer of this java program wasn´t able to help me with this issue. I got the same issue before with another jdk, i.e. adoptopenjdk-11.jdk. So it seems not to be the jdk itself, but the update of the java program. Wrong format of the dylib ?

Any suggestions what is going wrong and how I can check and cure this ?

I am running on macOS 12.3.1 (Monterey)

Upvotes: 2

Views: 1135

Answers (0)

Related Questions