Any ideas of what is happening when I attempt to load XLConnect? I think I installed everything correctly. I posted what I get when I installed rJava as well as when I attempted to load rJava directly. Thanks in advance for any help you can give on this. library(XLConnect) Loading required package: XLConnectJars Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(...) error: JAVA_HOME cannot be found from the Registry Error: package 'rJava' could not be loaded This is the mesage I get when I install rjava: Installing package(s) into ?C:/Users/550062/Documents/R/win-library/2.13? (as ?lib? is unspecified) trying URL 'http://cran.opensourceresources.org/bin/windows/contrib/2.13/rJava_0.9-0.zip' Content type 'application/zip' length 654181 bytes (638 Kb) opened URL downloaded 638 Kb package 'rJava' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Users\550062\AppData\Local\Temp\RtmppIjwgg\downloaded_packages If I try loading rJava directly I get the samer error as XLConnect:> library(rJava)Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(...) error: JAVA_HOME cannot be found from the Registry Error: package/namespace load failed for 'rJava -- View this message in context: http://r.789695.n4.nabble.com/XLConnect-Error-tp3628528p3628528.html Sent from the R help mailing list archive at Nabble.com.
On 27.06.2011 20:48, wwreith wrote:> Any ideas of what is happening when I attempt to load XLConnect? I think I > installed everything correctly. I posted what I get when I installed rJava > as well as when I attempted to load rJava directly. Thanks in advance for > any help you can give on this. > > library(XLConnect) > Loading required package: XLConnectJars > Loading required package: rJava > Error : .onLoad failed in loadNamespace() for 'rJava', details: > call: fun(...) > error: JAVA_HOME cannot be found from the Registry > Error: package 'rJava' could not be loaded > > This is the mesage I get when I install rjava: > > Installing package(s) into ?C:/Users/550062/Documents/R/win-library/2.13? > (as ?lib? is unspecified) > trying URL > 'http://cran.opensourceresources.org/bin/windows/contrib/2.13/rJava_0.9-0.zip' > Content type 'application/zip' length 654181 bytes (638 Kb) > opened URL > downloaded 638 Kb > > package 'rJava' successfully unpacked and MD5 sums checked > > The downloaded packages are in > C:\Users\550062\AppData\Local\Temp\RtmppIjwgg\downloaded_packages > > If I try loading rJava directly I get the samer error as XLConnect: > >> library(rJava) > Error : .onLoad failed in loadNamespace() for 'rJava', details: > call: fun(...) > error: JAVA_HOME cannot be found from the Registry > Error: package/namespace load failed for 'rJavaObvious question is: Do you have Java installed? Is this 32- or 64-bit R? And Java? The other output suggests we are talking about Windows 7 as the OS? Quoting the footer: > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html Uwe Ligges> -- > View this message in context: http://r.789695.n4.nabble.com/XLConnect-Error-tp3628528p3628528.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.
Hi, I am having the same issue as described by the original subscriber.... can you offer any guidance on how to install Java ??? Do I need to do this from the R command line ??? or do I need to do this outside of the application?? Thanks Daniel -- View this message in context: http://r.789695.n4.nabble.com/XLConnect-Error-tp3628528p3986491.html Sent from the R help mailing list archive at Nabble.com.
Hi Daniel, you can get Java from http://www.java.com/en/download/manual.jsp?locale=en Simply download and follow the instructions. Hope that helps. Martin -- View this message in context: http://r.789695.n4.nabble.com/XLConnect-Error-tp3628528p3991681.html Sent from the R help mailing list archive at Nabble.com.
Possibly Parallel Threads
- Can't read xlsx file into R. Seem, Seem to have XLConnect loaded.
- Questions on function "readNamedRegionFromFile" in XLConnect pacakge
- Cannot create Java virtual machine (-1)
- Extract named regions from an Excel file using XLConnect?
- Possible bug(s) causing ggplot2 and XLConnect to crash recent builds of r-devel