Problem Loading Rjava

Problem loading rJava

I finally solved the problem:

It seems that rJava searches for jvm.dll in ~\Java\jre6\bin\client.
However this folder didn´t exist on my system (jvm.dll was in ~\bin\server).

So I just made a copy of jvm.dll in a folder ~\bin\client\ and added this to the path.

Now everything works fine!

Unable to load rJava on R

Use:

Sys.setenv(JAVA_HOME='...path to JRE...')

e.g.

Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jdk1.7.0_51\\jre')

Your environment variable is wrong.

.onLoad failed in loadNamespace() for 'rJava

I added the following and then rJava loaded without error.

Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_221')


Related Topics



Leave a reply



Submit