This is confusing, as I thought the javareconf command was supposed to take care of the necessary environment variables, so I'm not sure why it won't work. Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so )Įrror: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':ĭlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib onLoad failed in loadNamespace() for 'rJava', details:Ĭall: dyn.load(file, DLLpath = DLLpath. When I try to load the rJava library, this is the errorĮrror: package or namespace load failed for ‘rJava’: I tried reinstalling rJava, but that also didn't help.
I checked the traceback of the XLConnect library error to confirm that the problem is rJava.
Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing) Java(TM) SE Runtime Environment (build 13+33) Everything worked apart from XLConnect, because it has that pesky java dependancy, so I installed JRE first and the JDK.
So I have a clean install of macOS, I installed R and Rstudio, then started to install the packages I use. Yesterday, however, I decided it was time to do a clean install of my mac for reasons that I won't go into. I was previously using XLConnect as part of a notebook successfully. This might be more of a general R environment problem, but I came across it while trying to load XLConnect after a clean reinstall, so I figured I'd try here.