I wish to load rJava in R x64 3.1.2. OS- Windows 8.1 64 bit
Though installation seems to work fine:
> install.packages(\"rJava\")
Installing
Faced similar error message.
Tried a few steps listed here.
It is probably the issue with the setting with the JAVA_HOME pointer. In case you do not have JDK but JRE, here is you might have to do: Sys.setenv(JAVA_HOME='C:\Program Files\Java\jre1.8.0_161')
Remember to change the numbers after "jre" based on what you have on your computer. Here is a link that explains the difference between JDK and JRE.