Problems with rJava in RStudio

I am having problems with loading the rJava package. When I run rJava::.jinit() or load packages that depend on rJava (e.g., mallet), Rstudio crashes & restarts immediately.

The important thing is: All of this works fine on RGui.

I have uninstalled/reinstalled JDK, R, and Rstudio. I've included the location that has jvm.dll in PATH ("C:\Program files\Java\jdk-18.0.1\bin\server"). I uninstalled previous versions of java so JAVA_HOME points only to the new/current version of java (JAVA_HOME = " C:\Program Files\Java\jdk-18.0.1").

I'd appreciate any pointers. Thank you.

1 Like

See the reply here:

This topic was automatically closed 21 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.