2

我的系统是 Mac OS 10.11.5,安装了 R 3.3.1 和 java 1.8.0_92。我已经安装了 XLConnect 和 XLConnectJars。当我尝试加载 XLConnect 时,我收到以下错误消息:

library(XLConnect)
Loading required package: XLConnectJars
JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
Error : .onLoad failed in loadNamespace() for 'XLConnectJars', details:
  call: .jinit()
  error: JNI_GetCreatedJavaVMs returned -1

Error: package ‘XLConnectJars’ could not be loaded

我已经尝试指定 java 版本选项的目录(java.home="/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk"),如XLConnect 包是否适用于 Java 8?,但这并没有解决问题。

4

0 回答 0