Sooji
Sooji

Reputation: 169

rJava library not working. Unable to find jvm.dll

I realize this question has been asked before but none of the solutions worked for me.

After a 'successful' install of rJava I try library(rJava) I receive an error that R cannot find jvm.dll. Here are the solutions I've tried:

Other potentially useful information:

Any ideas would be greatly appreciated. Getting really frustrated trying to get this library working as it's needed for the xlsx library.

SOLUTION:

Egg on my face, the issue was that I accidentally pointed to environmental variable to an old 32 bit install of Java that I must have accidentally installed at some point in the last few years (thank you @user20650). Pointing everything back at the 64 bit version fixed things. For the record I did have to set JAVA_HOME to point to the correct directory. Also, make sure you have both the java JRE and JDK.

Upvotes: 4

Views: 5495

Answers (1)

Sooji
Sooji

Reputation: 169

Egg on my face, the issue was that I accidentally pointed to environmental variable to an old 32 bit install of Java that I must have accidentally installed at some point in the last few years (thank you @user20650). Pointing everything back at the 64 bit version (ie C:\Program Files\Java\jdk1.8.0_121) fixed things after running install.packages('rJava', .libPaths()[1], 'http://www.rforge.net/').

For the record I did have to set JAVA_HOME to point to the correct directory. Also, make sure you have both the java JRE and JDK. Also, for some reason my anti-virus did not like letting that rforge install go through (didnt like the findjava.exe), so I had to pause it for a moment.

Upvotes: 1

Related Questions