> 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