Skip to content
Back to formatted view

Raw Message

Message-ID: <1352794865338-4649363.post@n4.nabble.com>
Date: 2012-11-13T08:21:05Z
From: gparab
Subject: Can't get R to recognize Java for rJava installation
In-Reply-To: <A632B3F93D861843A3C966F3962C3F8401108309B4F5@EMAIL05.pnl.gov>

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.