rJava fails to load in RHEL.

Need your kind help on the below issue.

I have RStudio Pro Workbench and Connect installed on RHEL 8. Whenever I do an OS update, rJava breaks and it fails to load. Is there any way I can make it work irrespective of the OS upgrades? Thanks.

rpm -qa| grep java


java -version

openjdk version "1.8.0_382"
OpenJDK Runtime Environment (build 1.8.0_382-b05)
OpenJDK 64-Bit Server VM (build 25.382-b05, mixed mode)


Please take a look at Solutions - Java and R.

There we describe a way that will make java support for R survive any OS patching (I guess you refer to update as applying the latest patches, not necessarily going to a new release, e.g. RHEL 7 to RHEL 8 ?)

The main thing for you to consider is to set JAVA_HOME to a folder that does not change when java is patched before you run "R CMD javareconf" as described in the mentioned link.

Thanks a lot for replying to my query. I will set JAVA_HOME as suggested..

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.