Problems with rJava

I have a problem with the loading of that packages. When I open the library, this message appears:

Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/alim.VID_VMETAIS/Documents/R/R-3.6.1/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 no es una aplicación Win32 válida.

I setted up, the JAVA_HOME as:

Sys.setenv(JAVA_HOME = "C:/Program Files (x86)/Java/jre1.8.0_221")

Please this is very urgent because I am trying to use XLConnect in RStudio.

Regards

It seems like you are using versions of R and Java with different architectures, R x64 and java x86, you have to use matching architectures.

1 Like

Thanks a lot! I resolved it!.
However, there are somethings in XLConnect that maybe does not work properly I think. That was the main reason of why I was trying to install rJava.
I would use openxls instead. Thanks again

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.