[R] can't load rJava in R 2.8.1 on Windows XP
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Jan 23 21:00:05 CET 2009
On 1/23/2009 12:06 PM, Dieter Menne wrote:
> Duncan Murdoch <murdoch <at> stats.uwo.ca> writes:
>
>>
>> If you look at rJava:::.onLoad now that you can load the package,
>> you'll see that it goes through a number of tests to try to find the
>> right path.
>
> Slightly different for me, but failure:
>
> jvm.dll is on path (checked successfully with "where jvm.dll")
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
>
> Rgui: Dialog Box (Translated from German)
>
> R Console: RGui.exe Component not found
>
> The application could not be started because jvm.dll could not be found.
>
> rJava package as of today
>
> R version 2.8.1 (2008-12-22)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;
> LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
>
> attached base packages:
> [1] stats graphics grDevices datasets utils methods base
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list