java - Why do I get "JNI_GetCreatedJavaVMs returned -1" error while loading the xlsx package in R? -


i downloaded xlsx package in r, can't use library. (on mac)

> library(xlsx) javavm: requested java version ((null)) not available. using java @ "" instead. javavm: failed load jvm: /bundle/libraries/libserver.dylib javavm fatal: failed load jvm library. error : .onload failed in loadnamespace() 'xlsx', details: call: .jinit() error: jni_getcreatedjavavms returned -1  error: package or namespace load failed ‘xlsx’ 

what doing wrong?

make sure have installed dependencies:

  • xlsxjars
  • rjava

and, of course, if not work, verify have java jdk installed in mac: javac -version if not, install here: https://java.com/en/download/faq/java_mac.xml


Comments