Error Unable To Load Shared Object Rjava.dll
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Using the rJava package on Win7 64 bit with R up vote 108 down vote favorite 51 I'm trying to install rJava on a computer with Win 7 64 bit. When I run install.packages("rJava") everything seems to be fine: Installing package(s) into ‘C:/Users/djq/Documents/R/win-library/2.13’ (as ‘lib’ is unspecified) trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.13/rJava_0.9-1.zip' Content type 'application/zip' length 654936 bytes (639 Kb) opened URL downloaded 639 Kb package 'rJava' successfully unpacked and MD5 sums checked The downloaded packages are in C:\TEMP\RtmpW2eAUw\downloaded_packages but when I tried to load the library library(rJava) I get the following error: Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/me/Documents/R/win-library/2.13/rJava/libs/x64/rJava.dll': LoadLibrary failure: %1 is not a valid Win32 application. Error: package/namespace load failed for 'rJava' I have installed the Java JRE (trying both 32 and 64 bit versions) and the JDK (using both 32 and 64 bit). My R version is R version 2.13.1 (2011-07-08) and I'm using RStudio. If I try using 32 bit R, I can load rJava fine. Is the problem just that rJava does not run in R 64 bit? How can I tell if a package is just for 32 instead of 64? edit: just posted R.version(): > R.Version() $platform [1] "x86_64-pc-mingw32" $arch [1] "x86_64" $os [1] "mingw32" $system [1] "x86_64, mingw32" $status [1] "" $major [1] "2" $minor [1] "13.1" $year [1] "2011" $month [1] "07" $day [1] "08" $`svn rev` [1] "56322" $language [1] "R" $version.string [1] "R version 2.13.1 (2011-07-08)" r rjava share|improve this question edited Aug 11 '11 at 15:54 asked Aug 11
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 104 Fork 35 s-u/rJava Code Issues 20 Pull requests 4 Projects 0 Pulse Graphs New issue package or namespace load failed for ‘rJava’ #49 Closed SandraDuenas opened this Issue Jun 20, 2015 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees http://stackoverflow.com/questions/7019912/using-the-rjava-package-on-win7-64-bit-with-r No one assigned 2 participants SandraDuenas commented Jun 20, 2015 Hi, I am trying to load the rJava package in R and get the error shown below. Just a note: I have Windows 8.1, already installed Java SDK and Java for Windows 8 with update 45, installed R https://github.com/s-u/rJava/issues/49 2 and I'm using R Studio latest version. Updated the System path to include the bin directory where Java SDK was installed, tested it successfully via the Command prompt. Downloaded the latest package of rJava_0.9-7.zip and unzip the files in the R Working directory and in the win 3.2 directory that R goes to when it runs the library(rJava) command. But nothing seems to work. If anyone has a solution to the issues below, please let me know at sandraduenas2013@u.northwestern.edu. Thank you! install.packages("rJava") Installing package into ‘C:/Users/Sandra/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rJava_0.9-6.zip' Content type 'application/zip' length 761928 bytes (744 KB) downloaded 744 KB package ‘rJava’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\Sandra\AppData\Local\Temp\RtmpkxFfsn\downloaded_packages library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/Sandra/Docu
4 messages John Sorkin Threaded Open this post http://r.789695.n4.nabble.com/library-xlsx-fails-with-an-error-Error-package-rJava-could-not-be-loaded-td4706060.html in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ library(xlsx) fails with an error: Error: package ‘rJava’ could not be loaded Windows 7 64-bit R 3.1.3 RStudio 0.98.1103 I am having difficulty loading and installing the xlsx package. The loading error unable occurred without any problem, however the library command library(xlsx) produced an error related to rJava. I tried to install rJava seperately, re-loaded the xlsx package, and entered the library(xlsx) command but received the same error message about rJave. Please see terminal messages below. Any suggestion error unable to that would allow me to load and run xlsx would be appreciated. Thank you, John > install.packages("xlsx") Installing package into ‘C:/Users/John/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/xlsx_0.5.7.zip'Content type 'application/zip' length 400944 bytes (391 KB) opened URL downloaded 391 KB package ‘xlsx’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\John\AppData\Local\Temp\Rtmp4CO5m7\downloaded_packages > library(xlsx) Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/John/Documents/R/win-library/3.1/rJava/libs/x64/rJava.dll': LoadLibrary failure: The specified module could not be found. Error: package ‘rJava’ could not be loaded > install.packages("rJava") Installing package into ‘C:/Users/John/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/rJava_0.9-6.zip'Content type 'application/zip' length 759396 bytes (741 KB) opened URL downloaded 741 KB package