Hi, rJava depends on having appropriate version of Java installed. You can download the JDK from oracle for free at their website. It should automatically set the appropriate environment variables, but if you are having difficulty with that still, you may need to set JAVA_HOME to the directory where you installed Java. Cheers, Josh P.S. Duncan Murdoch's Rtools gives you what you need to build R and many packages but not all third party software a particular package may depend on. On Fri, Jul 15, 2011 at 9:40 AM, Bogaso Christofer <bogaso.christofer at gmail.com> wrote:> Hi all, I was trying to install rJava package (some older version) from > source. However could not achieve using "Rcmd ?build -binary rJava" syntax > with windows cmd. The building process stopped with following error: > > > > ERROR*> JavaSoft\{JRE|JDK} can't open registry keys. > > ERROR: cannot find Java Development Kit. > > Please set JAVA_HOME to specify it's location normally > > ERROR: configuration failed for package 'rJava' > > > > With this error it seems that, I need to install some additional tool(s), > however I have Duncan's Rtools installed. > > > > Can somebody through some light on this issue, what I should do with this > error? > > > > Thanks, > > > > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles https://joshuawiley.com/
Hi all, I was trying to install rJava package (some older version) from source. However could not achieve using "Rcmd build -binary rJava" syntax with windows cmd. The building process stopped with following error: ERROR*> JavaSoft\{JRE|JDK} can't open registry keys. ERROR: cannot find Java Development Kit. Please set JAVA_HOME to specify it's location normally ERROR: configuration failed for package 'rJava' With this error it seems that, I need to install some additional tool(s), however I have Duncan's Rtools installed. Can somebody through some light on this issue, what I should do with this error? Thanks, [[alternative HTML version deleted]]
If you cannot build a java program outside R then you won't be able to do so inside R. Find a Java development resource (the JDK is one such) and get command-line ability to compile java enabled, and then come back to interfacing R with Java. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Bogaso Christofer <bogaso.christofer@gmail.com> wrote: Hi all, I was trying to install rJava package (some older version) from source. However could not achieve using "Rcmd build -binary rJava" syntax with windows cmd. The building process stopped with following error: ERROR*> JavaSoft\{JRE|JDK} can't open registry keys. ERROR: cannot find Java Development Kit. Please set JAVA_HOME to specify it's location normally ERROR: configuration failed for package 'rJava' With this error it seems that, I need to install some additional tool(s), however I have Duncan's Rtools installed. Can somebody through some light on this issue, what I should do with this error? Thanks, [[alternative HTML version deleted]] _____________________________________________ 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. [[alternative HTML version deleted]]
Possibly Parallel Threads
- rJava software
- Problem Installing rJava on MS Win 7 Platform
- Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error
- help updating package rJava (on ubuntu)
- r-cran-rjava dependencies on debian jesse, library(rJava) fails when default-jre is missing