rJava load error in RStudio/R after upgrading to OSX Yosemite
I had the same problem and went through the same steps as you. The final step to allow starting RStudio through Finder/Spotlight was to link libjvm.dylib to /usr/local/lib:
sudo ln -f -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib
-f
flag is added to force overwriting existing file/link
trouble installing and loading rJava on mac El Capitan
The problem was rJava wont install in RStudio
(Version 1.0.136
). The following worked for me (macOS Sierra version 10.12.6
) (found here):
Step-1: Download and install javaforosx.dmg
from here
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')
Java error in MacOS Mojavew when loading a package
Based on @Konrad's answer I did the following to get rid of all versions except Java 8.
Check for existing versions
/usr/libexec/java_home -V
Navigate to that version of Java that needs to be uninstalled.
cd /Library/Java/JavaVirtualMachines
In the JavaVirtualMachines path, type in ls
to see what versions of Java are existing there. It showed up as,
jdk-11.0.2.jdk jdk-12.0.1.jdk jdk1.8.0_211.jdk
removed all except 8.
sudo rm -rf jdk-11.0.2.jdk (and others)
library(xlsx)
works now.
R, loading rJava error
It works!
After installing and reinstalling different java versions and reinstalling rJava with the R command install.packages("rJava")
I got to the point where loading the library in the R console (shell window) didn't throw an error message anymore.
After that I was able to use the answer in this post to get it to work in RStudio by running this shell command:
sudo ln -f -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib
Not too complicated after all! Thank you for everyones patience.
Related Topics
C++ Equivalent of Java'S Instanceof
How to Use an Existing Database With an Android Application
Android 6.0 Multiple Permissions
Json Array Iteration in Android/Java
Java Using Much More Memory Than Heap Size (Or Size Correctly Docker Memory Limit)
Sort a Map≪Key, Value≫ by Values
What's Wrong With Java Date & Time API
How to Get the Path of a Running Jar File
How to Really Read Text File from Classpath in Java
How to Round Up the Result of Integer Division
How to Pass an Object from One Activity to Another on Android
How to Pass a Bitmap Object from One Activity to Another
Android Activity Classnotfoundexception - Tried Everything
Error: Could Not Find or Load Main Class
What's the Difference Between JavaScript and Java