Does XLConnect package work with Java 8?

我是研究僧i 提交于 2019-12-02 05:04:17

问题


I updated my Java version and deleted the older versions of Java. Now my XLConnect package will not load in R because XLConnectJars won't load. Here is the error message.

Loading required package: XLConnectJars
Error : .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: package ‘XLConnectJars’ could not be loaded

Is the only solution to reinstall an older version of Java?


回答1:


Try to define the path

options(java.home="C:/Program Files/Java/jre7/")

Change it appropriately




回答2:


What works for me in Windows 7 is:

options(java.home="C:\\Program Files\\Java\\jre1.8.0_45")
library(rJava)

after downloading the latest 64-bit Java version 8 from

http://java.com/en/download/manual.jsp


来源:https://stackoverflow.com/questions/26549829/does-xlconnect-package-work-with-java-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!