Error in dyn.load("/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so") No such file or directory. Facing this error in Azure Databricks.
Error in dyn.load("/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so") No such file or directory. Facing this error in Azure Databricks.
It's well documented in the Azure Databricks knowledge base. Because rJava depends on the specific locations, you need to perform some magic with symlinks before installing rJava (this could be done via init script as well):
%sh
ls -l /usr/bin/java
ls -l /etc/alternatives/java
ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/default-java
R CMD javareconf