[R] install rJava in linux
istazahn at gmail.com
Fri Mar 5 16:23:05 CET 2010
On Fri, Mar 5, 2010 at 4:41 AM, Grześ <gregorio99 at gmail.com> wrote:
> I'm a problem with installing "rJava" in Linux
> I have got in my system : java-sun, java-sun-tools, java-sun-jre
> but if I wont install rJava I got a problem like this:
>> install.packages("rJava", dependencies = TRUE)
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.mirroring.de/src/contrib/rJava_0.8-2.tar.gz'
> Content type 'application/x-gzip' length 471971 bytes (460 Kb)
> opened URL
> downloaded 460 Kb
> * installing *source* package ‘rJava’ ...
> configure: error: Java Development Kit (JDK) is missing or not registered in
> Make sure R is configured with full Java support (including JDK). Run
> R CMD javareconf
> as root to add Java support to R.
> If you don't have root privileges, run
> R CMD javareconf -e
> to set all Java-related variables and then install rJava.
Start by following these instructions. Make sure you have some version
of JDK installed (use your distributions package management system to
install it if needed) then run R CMD javareconf as instructed above.
> ERROR: configuration failed for package ‘rJava’
> * removing ‘/usr/lib/R/library/rJava’
> The downloaded packages are in
> Updating HTML index of packages in '.Library'
> Warning message:
> In install.packages("rJava", dependencies = TRUE) :
> installation of package 'rJava' had non-zero exit status
> What is wrong?
> View this message in context: http://n4.nabble.com/install-rJava-in-linux-tp1579395p1579395.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
University of Rochester
Department of Clinical and Social Psychology
More information about the R-help