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-11-openjdk-headless-11.0.20.0.8-3.el8.x86_64
java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64
javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch
java-1.8.0-openjdk-devel-1.8.0.382.b05-2.el8.x86_64
java-17-openjdk-17.0.8.0.7-2.el8.x86_64
tzdata-java-2023c-1.el8.noarch
java-1.8.0-openjdk-headless-1.8.0.382.b05-2.el8.x86_64
java-11-openjdk-11.0.20.0.8-3.el8.x86_64
java-17-openjdk-headless-17.0.8.0.7-2.el8.x86_64

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)

Thanks.

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.