OnLoad failed for ‘XLSX’ :
loadNamespace() calculate ‘rJava’; onLoad failed,
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
This is because my computer is not installed the JAVA environment, right now I need to download and install the JDK, website download address: https://www.oracle.com/java/technologies/javase-downloads.html, the website need to register account and download speed is slow, there are baidu network location 64 downloads: link: https://pan.baidu.com/s/1WQvo3UyVPtBypGcCLLCLzQ extracted code: wg5o
After downloading, which contains the method to install the JDK, introduce a public number, commonly used in all kinds of software download source and installation methods ~
After installing the JDK, first find the location of R installation package. Generally in the library document under R-4.0.2, delete the packages that were not installed successfully before. Here, I will delete RJava, Xlsxjars, and XLSX
After you delete it, go back to the Rstudio window and install it in the order rJava, XlsXJars, and XLSX. There are two ways to install the Package of R, either way
Method 1: Run the script
Install. Packages (” rJava “)
install. Packages (” xlsxjars “)
install. Packages (” XLSX “)
Method 2:
After installing library(XLSX), there will be no errors!!
loadNamespace() calculate ‘rJava’; onLoad failed,
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
This is because my computer is not installed the JAVA environment, right now I need to download and install the JDK, website download address: https://www.oracle.com/java/technologies/javase-downloads.html, the website need to register account and download speed is slow, there are baidu network location 64 downloads: link: https://pan.baidu.com/s/1WQvo3UyVPtBypGcCLLCLzQ extracted code: wg5o
After downloading, which contains the method to install the JDK, introduce a public number, commonly used in all kinds of software download source and installation methods ~
After installing the JDK, first find the location of R installation package. Generally in the library document under R-4.0.2, delete the packages that were not installed successfully before. Here, I will delete RJava, Xlsxjars, and XLSX
After you delete it, go back to the Rstudio window and install it in the order rJava, XlsXJars, and XLSX. There are two ways to install the Package of R, either way
Method 1: Run the script
Install. Packages (” rJava “)
install. Packages (” xlsxjars “)
install. Packages (” XLSX “)
Method 2:
After installing library(XLSX), there will be no errors!!
Read More:
- Solutions to the failure of R language loading rjava
- To solve the problem of loading rjava in installation of xlsx
- Remember that Maven can’t recognize Java_ Home problem error: Java_ HOME is not defined correctly.
- R language error in hist.default ():’x’must be a value
- R language error error: n() should only be called in a data context
- The sparse matrix of R language is too large to be used as.matrix
- In R language, for loop or array truncation, the following error occurs only 0’s may be mixed with negative subscripts
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Installation and use of R language ggmap package
- Panda was unable to open the. Xlsx file, xlrd.biffh.XLRDError : Excel xlsx file; not supported
- ERROR: JAVA_HOME is not set and could not be found.
- R: error: package or namespace load failed for ‘rjava’:
- R language error messages and related solutions
- R language error:‘ namespace:lazyeval There is no exit_ The object is eval
- R language – path setting and working directory modification
- R language notes – sample() function
- Registry key Error: Java version has value ‘1.8‘, but ‘1.7‘ is required
- Renaming the column name of data frame in R language
- Java:Error:Open registry key software \ JavaSoft \ Java Runtime Environment Problems
- R language packages installation failed: Error in install.packages: error reading from connection