Skip to content
Prev 168039 / 398502 Next

can't load rJava in R 2.8.1 on Windows XP

On 1/23/2009 12:06 PM, Dieter Menne wrote:
From within R?  Remember that the PATH is process-specific.  Maybe your 
shell added something that put jvm.dll on its path, but you didn't start 
Rgui from there.

In any case, looking at the .onLoad, it appears the easiest thing to do 
is to define the environment variable JAVA_HOME.  The startup code puts 
$JAVA_HOME/bin, $JAVA_HOME/bin/client, and $JAVA_HOME/jre/bin/client 
onto the end of the path, so things should work if at least one of those 
has your jvm.dll in it.

Duncan Murdoch