Here are some tips on getting up and running R + rJava on Windows 7 64bit. There are several possibilities, but most of them have fatal flaws. Here is what worked for me:
Add jvm.dll to your PATH
rJava, the R β Java bridge, will need jvm.dll, but R will have a problem finding this DLL. It is located in the type folder
C:\Program Files\Java\jdk1.6.0_25\jre\bin\server
or
C:\Program Files\Java\jre6\jre\bin\client
Wherever you are, add this directory to your Windows PATH variable. (Windows β "Path" β "Edit environment variables for your account" β PATH β change the value.)
You may have Java on your PATH. If so, you should find the client / server directory in the same Java home directory as the one already on your PATH.
To be safe, make sure your architectures match. If you have Java in Program Files , it is 64-bit, so you should run R64. If you have Java in Program Files (x86) , then it is 32-bit, so you are using regular 32-bit R.
Restart R from the Windows menu
If R is running, close.
In the menu "Start", "Start R / RGUI", "RStudio". It is very important that R picks up your PATH changes.
Install rJava 0.9.2.
Earlier versions do not work! Mirrors are not updated, so go to the source at www.rforge.net: http://www.rforge.net/rJava/files/ . Pay attention to advice
"Please use `install.packages('rJava',,'http://www.rforge.net/')` to install."
This is almost correct. This really works:
install.packages('rJava', .libPaths()[1], 'http://www.rforge.net/')
Watch for punctuation! The mysterious ".libPaths () [1]" simply tells R to install the package in the main library directory. For some reason, leaving a value blank does not work, although it should be the default.