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.