Skip to content

rJava works with 32-bit but not 64

4 messages · Spencer Graves, Simon Urbanek, Robert Baer

#
On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:

            
You got it almost right - it's slightly shorter than that:

install.packages("rJava",, "http://RForge.net")

but you know that if you ever looked at the rJava page ;)

Cheers,
Simon
#
On 2/4/2013 3:55 PM, Simon Urbanek wrote:
Thanks. Unfortunately, I still have problems with 64-bit rJava: As noted 
below, after your "install.packages", I get an error on library(rJava) 
[which works fine for me with 32-bit R]. Thanks, Spencer


 > install.packages("rJava",, "http://RForge.net")
trying URL 'http://RForge.net/bin/windows/contrib/2.15/rJava_0.9-4.zip'
Content type 'application/zip' length 761030 bytes (743 Kb)
opened URL
downloaded 743 Kb


The downloaded binary packages are in
C:\Users\sgraves\AppData\Local\Temp\Rtmp8wP4ap\downloaded_packages
 > library(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.
Error: package/namespace load failed for ?rJava?
 > sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] tools_2.15.2

  
    
#
On Feb 5, 2013, at 5:51 PM, Spencer Graves wrote:

            
Obviously. But thanks for testing the error message, you have shown that it works now (this was what we were talking about - maybe you misread the e-mail trail?).

If you actually want to use rJava in 64-bit R you'll have to install 64-bit Java as several of us mentioned before.

Cheers,
Simon
1 day later
#
For what it is worth Spencer, I can start rJava in both 32-bit R and 
64-bit R for Windows 7.  [And could even before Simon fixed the error 
message).

And yes, I have both 32-bit Java and 64-bit Java 1.7.0_13 installed.  
They should be separate entries under your control panel.

Rob