haotu : an open lab notebook

2014/09/05

R error in loading rJava :: error: No CurrentVersion entry in Software/JavaSoft registry!

Filed under: Java, R, R Stats — S @ 17:10

When I tried to load

rJava

a dependency of

xlsx

I got the following error

Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
 call: fun(libname, pkgname)
 error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
In addition: Warning message:
display list redraw incomplete 
Error: package ‘rJava’ could not be loaded

I am running Windows 7 on a 64 bit machine and the problem was that the only version of Java I had installed was a 32bit version. You will need to get the newest version of JRE (Java Runtime Environment). I found it here and here.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: