Strunk, Jacob
2012-Feb-07 22:47 UTC
[R] rJava load failure, 64-bit R, 64-bit Java, R 2.14.1 (works fine on R 2.12.2 64-bit, same computer)
Hello R users, I have encountered difficulty in attempting to load the package "rJava" for 64-bit R 2.14.1. It appears that the problem is specific (for my system) to this version of R. I had no trouble loading rJava on an earlier version (2.12.2) of R. N:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) I used the following to install rJava: install.packages('rJava', .libPaths()[1], 'http://www.rforge.net/')> library(rJava)Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Program Files/R/R-2.14.1/library/rJava/libs/x64/rJava.dll': LoadLibrary failure: The specified path is invalid. Error: package/namespace load failed for 'rJava' The specified file is in fact present, and my R console says "(64-bit)" at the top I am aware of the following discussion on this topic: http://stackoverflow.com/questions/2399027/cannot-load-rjava-because-cannot-load-a-shared-library I have updated my path to include the following: C:\Program Files\R\R-2.14.1\bin\x64 And C:\Program Files\Java\jre6\bin\ When I download the package and install from a local zip I get the following error:> library(rJava)Error in get(Info[i, 1], envir = env) : cannot allocate memory block of size 2.9 Gb Error: package/namespace load failed for 'rJava' There should not be any memory issues:> memory.limit()[1] 16381 Thank you! Jacob L Strunk [[alternative HTML version deleted]]