[R] Problem loading rJava (win 7)

From: Tal Galili <tal.galili_at_gmail.com>
Date: Thu, 21 Apr 2011 16:36:40 +0300


Hello all,
I'm using R 2.13.0 on windows 7.

It seems rJava is failing to load for me, here is the error received:

> library("rJava")

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 tried installing the latest version and found that it is not available on CRAN.
I did find a copy here:
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13/ (Thanks to Professor Brian Ripley!)
And tries installing it, although that didn't seem to work so well. Using install.packages leads to the following error:

 install.packages(pkgs="
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13/rJava_0.8-8.zip ")
Installing package(s) into ‘D:/R/library’ (as ‘lib’ is unspecified)
inferring 'repos = NULL' from the file name Error in .zip.unpack(pkg, tmpDir) :
  zipfile '
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13/rJava_0.8-8.zip' not found

I also tried using the GUI but I seem to be getting some "invisible" output:

> utils:::menuInstallLocal()
>

Any suggestions on how to proceed?

Thanks,
Tal

----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili_at_gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Apr 2011 - 13:45:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 14:40:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive