error: No CurrentVersion entry in Software/JavaSoft registry!

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

error: No CurrentVersion entry in Software/JavaSoft registry!. When receiving the following problem while trying to install package xlxs in R.

Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: No CurrentVersion entry in Software/JavaSoft registry! 
Try re-installing Java and make sure R and Java have matching
architectures.

error: No CurrentVersion entry in Software/JavaSoft registry!

There is no entry for CurrentVersion in the Software/JavaSoft register! Reinstall Java and double-check that R and Java have the same architecture.

The problem will persist if you try to reinstall Java.

Error in x[6, ]: subscript out of bounds »

The error usually arises when the architectures of java and r (32/64 bit) do not match.

In cmd, use java -version to verify the version of Java.

You can resolve the issue by doing the following setup.

Step1:-Open Rstudio > tools > global options

Step2:-general settings > R-version > change (to the architecture same as that of java)

Step3:-Apply

Yes, That’s all issue solved. Now you can load the package.

error: JAVA_HOME cannot be determined from the Registry

The post error: No CurrentVersion entry in Software/JavaSoft registry! appeared first on finnstats.

To leave a comment for the author, please follow the link and comment on their blog: Methods – finnstats.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)