I'm using x64 windows 7 and R i386 3.1.1
I installed 'tm.plugin.webmining' package. but when I load this package using
library(tm.plugin.webming)
flowing error occure:
Error : .onLoad is failed at loadNamespace() because of 'rJava':
Call: inDL(x, as.logical(local), as.logical(now), ...)
Error: Cannot load 'C:/Program Files/R/R-3.1.1/library/rJava/libs/i386/rJava.dll':
LoadLibrary failure: Cannot find the module.
I already installed latest jvm. But it doesn't work.
try setting the Java_Home path on R
Sys.setenv(JAVA_HOME="path/java/home")
ie
Sys.setenv(JAVA_HOME=C:/Program Files/Java/jdk1.8.0_05/bin")
Related
I have successfully installed all the libraries but below error is not going away
I have tried 3 JDK java-se-8u41-ri ; openjdk11 ; openjdk8 and below error keeps coming, when I open in R-Studio it works but not whe i try to make exe using electron, please advise
stderr:Error: package or namespace load failed for 'qdap':
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users//R-Portable-Win/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
While i am trying to load library Raster i am getting error as follow:
Error: package or namespace load failed for ‘raster’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/A132054/OneDrive/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘raster’ was built under R version 4.0.2
It was working fine earlier and other system as well.
I would reinstall raster after first reinstalling the packages it uses.
install.packages(c("Rcpp", "rgdal", "sp", "terra", "raster"))
It would be even better to first install R 4.0.2
I've 64 bit machine and have installed jdk and jre(64 bit) also R and R studio is 64bit. I'm trying to install 'rMongodb' package by:
devtools::install_github("tc/RMongo")
but it gives out 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/saini/OneDrive/Documents/R/win-library/3.5/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error : package 'rJava' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'rJava' was built under R version 3.5.2
ERROR: loading failed for 'i386'
* removing 'C:/Users/saini/OneDrive/Documents/R/win-library/3.5/RMongo'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/saini/AppData/Local/Temp/RtmpuEHfqO/file20f419985c01/RMongo_0.1.0.tar.gz’ had non-zero exit status
Even though library(rJava) works fine.
Ps. I've already set the environment variables.
install.packages("RMongo")
doesn't works (seems like it has been deprecated.
So, I was trying to install using devtools.
devtools::install_github("tc/Rmongo")
but it gives out 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/saini/OneDrive/Documents/R/win-library/3.5/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error : package 'rJava' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'rJava' was built under R version 3.5.2
ERROR: loading failed for 'i386'
* removing 'C:/Users/saini/OneDrive/Documents/R/win-library/3.5/RMongo'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/saini/AppData/Local/Temp/RtmpuEHfqO/file20f419985c01/RMongo_0.1.0.tar.gz’ had non-zero exit status
Even though library(rJava) works fine.
JDK, JRE are both 64 bit. R and R studio are also 64 bits.
Someone suggested to use
R CMD javareconf
but it doesnot recongnises javareconf.
Also, I've set Environment Variables.
I am working on a churn project and came across a J48 tree function. The asked packages were RWeka and party. But when I am loading library(RWeka), I am getting an error
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/joe.main/Documents/R/win-library/3.3/rJava/libs/i386/rJava.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
package ‘RWeka’ was built under R version 3.3.1
Error: package or namespace load failed for ‘RWeka’
Any workaround for this issue?
It was an issue of JAVA_HOME> It worked once I removed it from the Path in Environmental Variables