Home >Java >javaTutorial >Why Does rJava Fail to Load After Upgrading to OSX Yosemite, and How Can I Fix It?
rJava Loading Error After "Upgrading" to OSX Yosemite
Many users have encountered problems loading rJava after "upgrading" from OSX Mountain Lion to Yosemite. To resolve this issue, follow these steps:
Despite these steps, you may encounter the following error:
Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/libs/rJava.so': dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/libs/rJava.so Reason: image not found Error: package or namespace load failed for ‘rJava’
To resolve this issue:
This should allow you to load rJava and packages that depend on it without any errors.
The above is the detailed content of Why Does rJava Fail to Load After Upgrading to OSX Yosemite, and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!