# Pittsburg, PA library download mirror
# options(repos = c(CRAN = "http://lib.stat.cmu.edu/R/CRAN/"))
#0-Cloud (secure)
options(repos = c(CRAN="https://cloud.r-project.org/"))
library("RODBC")
library("RODBCext")
library("RDCOMClient")
# library("xlsx")
library("lubridate")
library("xtable")
library("rpivotTable")
library("htmlwidgets")
library("stringr")
library("readxl")
library("zoo")
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jdk1.8.0_321")
library(rJava)
library(xlsx)
I get the following error during the library(rJava) and library(xlsx):
> Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jdk1.8.0_321")
> library(rJava)
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/n291001/Documents/R/win-library/3.4/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
> library(xlsx)
Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/n291001/Documents/R/win-library/3.4/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
If I do not run the Sys.setenv before the rJava I get the following error:
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/n291001/Documents/R/win-library/3.4/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The specified module could not be found.
The above is run in R version [Default] [64-bit] C:\Program Files\R\R-3.4.4