0

I have been battling with solving this issue for some days but the issue problem remain adamant.Please how do I successfully load packages on R.Please see the error message below for your further assistance;

Loading required package: XLConnectJars
Error: package or namespace load failed for ‘XLConnectJars’:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: JAVA_HOME cannot be determined from the Registry
Error: package ‘XLConnectJars’ could not be loaded
www
  • 38,575
  • 12
  • 48
  • 84
  • 1
    One possible workaround is to try an alternative excel package, such as `openxlsx` or `readxl`. – lmo Jul 17 '17 at 13:41

1 Answers1

0

It seems that the requested library can't be loaded because the library can't be found in your library path which seems not been set.

"Registry" means you work on a windows machine. Right? If so, open an explorer window, right click on "thisPC" ( or whatever it is called ), open the properties section and then the "extended System settings". You will find an option on the bottom called "environment variables". Open it and you will find a set of user defined variables and a set of system wide settings.

If you don't find a "JAVA_HOME" entry in one of the lists, create a user defined variable with that name and enter the path to your java installation.

It should solve the problem.

Edit: This question is related to your problem. You should read it.

theSOMguy
  • 1
  • 4