简体   繁体   中英

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). 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?

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM