R: rJava package install failing
Turns out my problem was an issue with my JAVA_HOME
environment variable. Yes, shocking I know. My initial setting for PATH
and JAVA_HOME
looked like this:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
And I added /jre
so it now looks like this:
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre
export PATH=$PATH:$JAVA_HOME/bin
Everything in Java seemed to work fine without the /jre
but rJava would not. Odd.
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
Using Rjava on Mac. Relevant library libjvm.dylib does not exist
You don't have to make symbolic links etc. You simply need to properly configure Java and R to get them running smooth.
Take a look here: R, Java, rJava and macOS adventures
Recently, I have updated this entry for more recent R - R 3.4. Take a look here: R 3.4, rJava, macOS and even more mess ;)
Maybe this time it will help ;)
Trouble installing rJava on Mac ; trouble with JNI data types
I finally resolved this, via a solution I found here.
The new Mac OS X (10.11, El Capitan) has trouble with env variables.
The newest dev flavor of rJava
manages to handle things correctly. Here is what I did to resolve it:
- Download version 0.9-8 (
rJava_0.9-8.tar.gz
) from here Install it from the downloaded source:
$ R CMD INSTALL ~/Downloads/rJava_0.9-8.tar.gz
(Or wherever you put it)
That's all it took!
Related Topics
How to Write Ndef Records to Nfc Tag
How to Get Specific Pushedid in Firebase
How to Get the Current Screen Orientation
How to Execute Linux Commands on a Remote MAChine Using Java
How to Connect to Ftps Server with Data Connection Using Same Tls Session
JPA Cascadetype.All Does Not Delete Orphans
Java Count Occurrence of Each Item in an Array
Why Does JPA Have a @Transient Annotation
Handling MySQL Datetimes and Timestamps in Java
Is Java.Time Failing to Parse Fraction-Of-Second
Android Changing Floating Action Button Color
How to Check Certificate Name and Alias in Keystore Files
Https Get (Ssl) with Android and Self-Signed Server Certificate
Can't Make Jdbc Connection to MySQL (Using Java, Intellij, and Linux)
Differences Between System.Out.Println() and Return in Java
Why Does Hibernate Require No Argument Constructor