
Installing Eclipse Temurin (previously AdoptOpenJDK) (and removing the previously created symlink in /Library/Java/JavaVirtualMachines/openjdk.jdk) immediately solved both issues seamlessly. onLoad failed in loadNamespace() for 'rJava', details:Įrror: unable to load shared object '/opt/homebrew/Cellar/openjdk/16.0.2/libexec/openjdk.jdk/Contents/Home/lib/server/libjvm.dylib':ĭlopen(/opt/homebrew/Cellar/openjdk/16.0.2/libexec/openjdk.jdk/Contents/Home/lib/server/libjvm.dylib, 10): As signaled in a previous answer by Mohammed, openjdk is keg-only with brew, and hence requires adding a symlink.Īfter following this, it solved the No Java Runtime present error, but rJava was complaining about missing libjvm.dylib and that existing libraries were for the wrong architecture.


On an M1 Mac/Apple Silicon (running Big Sur), I had already openjdk installed.
