[R] Can't get R to recognize Java for rJava installation

gparab guru7777 at hotmail.com
Tue Nov 13 09:21:05 CET 2012


I had similar issue. This worked for me:
get in as root:

export JAVA_HOME="/usr/java/jdk1.6.0_37/jre"
export PATH=$PATH:$JAVA_HOME/bin

ln -sf usr/java/default/bin/javah     /usr/bin/javah
ln -sf usr/java/default/bin/javap     /usr/bin/javap
(basically make sure you have all java* binaries that you have under
usr/java/default/bin/ are also under /usr/bin/ as link. Follow how javac is
placed under /usr/bin/)

R CMD javareconf

now make sure you still have the JAVA_HOME and PATH variable intact as you
set it. Go to R and try installing "rJava" package, it should work.




--
View this message in context: http://r.789695.n4.nabble.com/Can-t-get-R-to-recognize-Java-for-rJava-installation-tp4553023p4649363.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list