EDi EDi - 1 year ago 125
R Question

Problem loading rJava

Yesterday I removed R2.11 from my system (Win7, 64bit), since I´m working on R2.13.

Since then i get an error message:

> require(rJava)
Lade nötiges Paket: rJava
Error : .onLoad in loadNamespace() fehlgechlagen, Details:
Aufruf: rJava
Fehler: inDL(x, as.logical(local), as.logical(now), ...)

I tried specifying PATH, since I found on the internet that it might have something to do with jvm.dll:

C:\Program Files\R\R-2.13.0\bin;
C:\Program Files\Java\jre6\bin\server

However I could not solve the problem...
I also can´t run R from the win command line (just type "R"?)

Any suggestions?

Answer Source

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!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download