[R] rJava fail

Simon Urbanek simon.urbanek at r-project.org
Fri May 30 17:29:10 CEST 2014


On May 30, 2014, at 9:55 AM, Bond, Stephen <Stephen.Bond at cibc.com> wrote:

> 
> R version 3.1.0 (2014-04-10) -- "Spring Dance"
> Copyright (C) 2014 The R Foundation for Statistical Computing
> Platform: i386-w64-mingw32/i386 (32-bit)
> 
>> library(rJava)
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
>  call: dirname(this$RuntimeLib)
>  error: a character vector argument expected
> Error: package or namespace load failed for 'rJava'
> 
> Things used to work on R 3.0.1 but suddenly stopped. I installed the new R and new packages. Then started downgrading Java. Went from Java 7 to Java 6 update 16 and still no luck. Please, advise which Java I need and if any paths need to be modified.


Please make sure that your Java architecture matches your R architecture and then re-install the matching Java (i.e. both have to be 32-bit or both have to be 64-bit - you cannot mix/match). It seems that there is a problem with your Java registry entries. The version is irrelevant - any Java version 1.4 or higher should work.

Please direct further questions to the stats-rosuda-devel mailing list for rJava.

Thanks,
Simon



More information about the R-help mailing list