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.
Problem loading rJava
I finally solved the problem:
It seems that rJava searches for jvm.dll in ~\Java\jre6\bin\client.
However this folder didn´t exist on my system (jvm.dll was in ~\bin\server).
So I just made a copy of jvm.dll in a folder ~\bin\client\ and added this to the path.
Now everything works fine!
Related Topics
Can't Print to PDF Ggplot Charts
How to Add Legend to Ggplot Manually? - R
Min for Each Row in a Data Frame
R: Data.Table Cross-Join Not Working
How to Deal with "'Somefunction' Is Not an Exported Object from 'Namespace:Somepackage'" Error
R Compare Multiple Values with Vector and Return Vector
How to Work with Large Numbers in R
Replacing Numbers Within a Range with a Factor
Remove Groups with Less Than Three Unique Observations
Passing Command Line Arguments to R Cmd Batch
Append Value to Empty Vector in R
Getting Strings Recognized as Variable Names in R
What's the Best Way to Use R Scripts on the Command Line (Terminal)
File Path Issues in R Using Windows ("Hex Digits in Character String" Error)
Read.CSV Warning 'Eof Within Quoted String' Prevents Complete Reading of File