为什么在R中加载xlsx包时会出现以下错误?

时间:2015-02-24 10:08:07

标签: r xlsx r-package

> library(xlsx)
Error : .onAttach failed in attachNamespace() for 'xlsx', details:
  call: .jnew("org/apache/poi/xssf/usermodel/XSSFWorkbook")
  error: java.lang.NoClassDefFoundError
Error: package or namespace load failed for ‘xlsx’

JDK中是否有任何我缺少的要求?

同样相反,我在另一个Windows系统中遇到了不同类型的错误,如下所示,尽管安装了Java并设置了环境变量,但它无法找到Java软件的内容。

> library(xlsx)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error: unable to load shared object 'E:/R Project/Softwares/R-  3.1.2/library/rJava/libs/x64/rJava.dll':
  LoadLibrary failure:  The specified module could not be found.

Error: package ‘rJava’ could not be loaded

0 个答案:

没有答案