JVM DLL not found but I can clearly see the file

1.7k views Asked by At

I installed openjdk with Homebrew on my Mac but then I run a python library (sutime) that uses Java, I run into this error:

FileNotFoundError: [Errno 2] JVM DLL not found: /opt/homebrew/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home/lib/libjli.dylib

However, when I run

ls /opt/homebrew/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home/lib

I can see my dlls here including the one it seemingly couldn't find libjli.dylib. I'm pretty lost on why my dll isn't being detected even though it is in the correct filepath.

0

There are 0 answers