

Don’t worry about jdk-10.0.1 as this might change for future releases. Set your JAVA_HOME environment with Sys.setenv(JAVA_HOME="C:/Program Files/Java/jdk-10.0.1/") so that it points to your specific (64-bit in my case) folder that contains the jdk. Install rJava with install.packages("rJava"). Conversely, if you installed 64-bit then everything should be installed in C:/Program Files/Java/. If you installed 32-bit Java then everything should be saved in C:/Program Files (x86)/Java/.

For 64-bit I had to download the Windows version from here. I had 64 bit so I downloaded the Offline 64-bit version from here.ĭownload Java JDK for 32/64 bit. From a 64-bit browser, download 64-bit Java from the manual page. R and Java must have the same memory signature, either 32 or 64 bit. Users should download 64-bit Java software, if they are running 64-bit browsers. Check Platform.ĭownload the specific 32/64 bit of Java. Post here the steps that made it work in case anyone is interested (that is, future me).Ĭheck whether R is 32/64 bit with sessionInfo(). The following tables provide links to the package files for GA releases, and their. For instructions on how to install using the graphical PKG and MSI installers, or through package managers WinGet, Homebrew, apt and yum, see the Install page. Struggled for about two hours to install rJava on my Windows 10 machine. This article provides links to download the Microsoft Build of OpenJDK.
