

R and Java must have the same memory signature, either 32 or 64 bit. Check whether R is 32/64 bit with sessionInfo(). Post here the steps that made it work in case anyone is interested (that is, future me).

#Problems with rjava windows install
R-devel: rJava_1.0-6.zip, r-devel-UCRT: rJava_1.0-6.zip, r-release: rJava_1.0-6.zip, r-oldrel: rJava_1.0-6.zip Struggled for about two hours to install rJava on my Windows 10 machine. Make sure you have configured R with Java support (see R documentation) and check config.log for failure reason. Looking at the GHA logs the error on installation of rJava is: configure: error: Unable to run a simple JNI program.

To build or check R packages with multi-arch you need to install both Java For Windows 圆4 as well as Java for Windows x86. Similarly for R (32-bit) version download and install Java SE Development Kit 8 for Windows x86 from here. Java JDK 1.2 or higher (for JRI/REngine JDK 1.4 or Ive not tried installing rJava on a GitHub runner before. To use rjava package for R(64-bit) version download and install Java SE Development Kit 8 for Windows 圆4 from here. I do not seem to be able to load the package. > HTH, > Rob > On 8:03 AM, Tolga Uzuner wrote: > Dear R Users > Have run into a problem with the rJava package recently. Allows creation of objects, calling methods and accessing fields. I am doing fine on Windows with Java 7 update 45 but had some 64-bit run issues with only Java 7 update 40 64-bit JDK. Low-level interface to Java VM very much like.
