Unable to use FSelector package in R on mac OS X El Capitan

462 Views Asked by At

I'm using OS X El Capitan Version 10.11.3 now.

When I tried to use library(FSelector) in R, errors pop out saying:

JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
Error : .onLoad failed in loadNamespace() for 'RWekajars', details:
  call: .jinit()
  error: JNI_GetCreatedJavaVMs returned -1

Error: package or namespace load failed for ‘FSelector’

Also, same thing happened when I tried library(Rweka) and library(Rwekajars).

Why this happens and how to solve it?

1

There are 1 best solutions below

0
On

Type this into the console

java -version

Then it will prompt you to install the Java SDK.