xdmojojojodx
xdmojojojodx

Reputation: 23

Change Java version in R studio

R studio is giving me an error when trying to open an xlsx document saying WARNING: Initial Java 12 release has broken JNI support and does NOT work. Use stable Java 11 (or watch for 12u if available). Does anyone know how I can resolve this issue and change to Java 11?

Upvotes: 0

Views: 3053

Answers (1)

JacobJacox
JacobJacox

Reputation: 947

Had the same issue, it turns out that I just needed to set proper JAVA_HOME as indicated in the comments.

Sys.setenv(JAVA_HOME="path to your java dir") #'C:\\Program Files\\Java\\...
library(rJava)

Upvotes: 2

Related Questions