R:Error : .onLoad failed in loadNamespace() for ‘rJava’, details: call: dyn.load(file, DLLpa

R: unable to load the Shared object object ‘/ usr/lib64/R/library/rJava/libs/rJava. So

problem description:

when installing mailR package on R today, this error occurred

. After searching and finding, I tried to install a wave of rJava, but failed. The following error occurred:
can be found through this prompt message: R wants us to make sure that the JAVA in our environment is installed correctly (JAVA has been installed correctly in my environment)
if in doubt, use the Root account to run R CMD javareconf
then I run the R CMD javareconf

you can see the prompt message at the bottom: done.
after seeing this, I went into the R environment again, reinstalled the mailR package, and finally succeeded.

Read More: