Pls help the error: JAVA_HOME cannot be determined from the Registry

Pls help on the error below. Thanks.....

Here is some info:
Operation system: Windows 10 Pro
R version: R x64 4.1.2
Java version: Java 8 Update 281 (64-bit)

Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry

Hi there,

The package you want to install needs an installation of java. So you need to be sure you have Java installed and it is able to find/is pointed towards that installation.

It is discussed here in detail: java - rJava install error "JAVA_HOME cannot be determined from the Registry" - Stack Overflow

Let me know if this helps :slight_smile:

If you want an easier time to work with xlsx files in R I would suggest looking at readxl. See here:

Just reinstalled the lastest Java progam and those errors are gone....

Many thanks for your advice, folks@GreyMerchant

1 Like

Great :slight_smile: just mark the post as the solution for the problem.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.