Skip to content

problems with rJava

2 messages · karamoo, Brian Ripley

#
Hi All, and Heberto,

Did you ever resolve your installation problem with rJava?

I have a new windows 7 machine and can't seem to get it installed correctly.
I do have Java installed.  I download rJava without proble, then:
Installing package(s) into ?C:\Users\Patrick\Documents/R/win-library/2.12?
(as ?lib? is unspecified)
trying URL
'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.12/rJava_0.8-8.zip'
Content type 'application/zip' length 637125 bytes (622 Kb)
opened URL
downloaded 622 Kb


The downloaded packages are in
        C:\Users\Patrick\AppData\Local\Temp\Rtmp9zcM7g\downloaded_packages

Looks like it downloaded fine to my eyes. But in the next step I get an
error:
Error in utils::readRegistry(key, "HLM", 2) : 
  Registry key 'Software\JavaSoft\Java Runtime Environment' not found
Error in utils::readRegistry(key, "HLM", 2) : 
  Registry key 'Software\JavaSoft\Java Development Kit' not found
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(...)
  error: JAVA_HOME cannot be found from the Registry
Error: package/namespace load failed for 'rJava'

I'm not sure how to check where R is looking for rJava vs where it lives,
this seems to be an issue in other posts, although they have different
errors. 

I'm a novice still at R. I see a lot of posts on this topic, but few are
recent.  Help would be much appreciated.  


Thanks! 

Kara Moore
Evolution and Ecology
University of California, Davis, USA
#
On Thu, 6 Jan 2011, karamoo wrote:

            
As you didn't follow the posting guide, we don't know if this is 32- 
or 64-bit R on 32- or 64-bit Windows.

If you are running 64-bit R you need 64-bit Java, and similarly for 
32-bit.  The message you show indicates that you do not have the 
appropriate Java installed.

As I have pointed out already this week, rJava has its own mailing 
list, so please follow up there.