On Fri, Mar 5, 2010 at 4:41 AM, Grześ <gregori...@gmail.com> wrote: > > Hi > 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’ ... <snip> > configure: error: Java Development Kit (JDK) is missing or not registered in > R > 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. Best, Ista > > ERROR: configuration failed for package ‘rJava’ > * removing ‘/usr/lib/R/library/rJava’ > > The downloaded packages are in > ‘/root/tmp/RtmpA0Qvcf/downloaded_packages’ > 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@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. > -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org ______________________________________________ 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.