R session aborted all the time

Hey, i am using using R studio- [1.2.5042.] version ,java- version (1.8) and want to install xlsx-0.6.3 package(latest). I have tried so many time. Installation always completes.But when i want to use this library. It always shows- "R session aborted, R encountered a fatal error. The session was terminated"
I have followed your all the troubleshooting steps. please try to help me.

Does this also happen if you execute your code in the R GUI (not RStudio)? Can you try to provide a REPRoducible EXample (reprex) illustrating your issue?

xlsx package depends on Java, do you have a 64bit Java version installed in your system (not in R)?

Yes i have java 64 bit installed in my system. Environment paths are also set.

install.packages("rJava") 

?

xlsxjars and rJava is working fine.but when i use library("xlsx") command.it shows the above error.

I installed others packages also.they all are working fine except xlsx package

What happens when you run ?

library(rJava)
.jinit()
javaImport(packages = "java.util")

I re-installed java,R-GUI and R studio . Now it is working fine. Thanks a lot you all guys for your support. God bless you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

It is showing following in R studio:

install.packages("xlsx")
trying URL 'https://cran.csiro.au/bin/windows/contrib/4.0/xlsx_0.6.3.zip'
Content type 'application/zip' length 379024 bytes (370 KB)
downloaded 370 KB

package ‘xlsx’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\SAKETRANA\AppData\Local\Temp\Rtmpyqt1cA\downloaded_packages

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:/Program Files/R/R-4.0.0/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The device is not ready.

In R-GUI:

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:/Program Files/R/R-4.0.0/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The device is not ready.