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. ______________________________________________ R-help@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.