Hello. I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit RGui) and get the following error message even though the mentioned .dll file is located at the directory listed in the error message. I have tried to uninstall and reinstall the package but that does not resolve the problem. Then uninstallation and re-installation of R did not resolve the issue either. Any suggestions are appreciated. charis. <R Console>> library(rJava)Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'C:/R/R-2.7.2/library/rJava/libs/rJava.dll': LoadLibrary failure: The specified module could not be found. Error : .onLoad failed in 'loadNamespace' for 'rJava' Error: package/namespace load failed for 'rJava'> sessionInfo()R version 2.7.2 (2008-11-24) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices datasets tcltk utils methods base other attached packages: [1] Matrix_0.999375-17 lattice_0.17-17 filehash_2.0 svSocket_0.9-5 TinnR_1.0.2 R2HTML_1.59 Hmisc_3.4-4 RProbase_0.1-0 loaded via a namespace (and not attached): [1] cluster_1.11.11 grid_2.7.2 svMisc_0.9-5 tools_2.7.2 </R Console> -- View this message in context: http://www.nabble.com/Problem-with-loading-rJava-in-R-tp21968371p21968371.html Sent from the R help mailing list archive at Nabble.com.
The 'specified module' is specified in a pop-up (but not on Win 2000 ans sometimes it gets hidden): this is a Windows error message, and confuses many people. You need Sun Jave installed and in your path, and you need a 32-bit Java, not a 64-bit one. My guess is that the problem is one of the conditions of the previous sentence. On Wed, 11 Feb 2009, charis wrote:> > Hello. > > I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit RGui)I presume it it 32-bit Rgui running on 64-bit Windows XP frpm he info below.> and get the following error message even though the mentioned .dll file is > located at the directory listed in the error message. I have tried to > uninstall and reinstall the package but that does not resolve the problem. > Then uninstallation and re-installation of R did not resolve the issue > either. Any suggestions are appreciated. charis. > > <R Console> >> library(rJava) > Error in inDL(x, as.logical(local), as.logical(now), ...) : > unable to load shared library 'C:/R/R-2.7.2/library/rJava/libs/rJava.dll': > LoadLibrary failure: The specified module could not be found. > > > Error : .onLoad failed in 'loadNamespace' for 'rJava' > Error: package/namespace load failed for 'rJava' > >> sessionInfo() > R version 2.7.2 (2008-11-24) > i386-pc-mingw32 > > locale: > LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > States.1252;LC_MONETARY=English_United > States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 > > attached base packages: > [1] stats graphics grDevices datasets tcltk utils methods > base > > other attached packages: > [1] Matrix_0.999375-17 lattice_0.17-17 filehash_2.0 svSocket_0.9-5 > TinnR_1.0.2 R2HTML_1.59 Hmisc_3.4-4 RProbase_0.1-0 > > loaded via a namespace (and not attached): > [1] cluster_1.11.11 grid_2.7.2 svMisc_0.9-5 tools_2.7.2 > </R Console> > -- > View this message in context: http://www.nabble.com/Problem-with-loading-rJava-in-R-tp21968371p21968371.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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Rowe, Brian Lee Yung (Portfolio Analytics)
2009-Feb-12 15:17 UTC
[R] Problem with loading rJava in R
Did you verify that all your apps/libraries are all 64-bit compatible? If your dll indeed exists in the directory it complains about, I would venture that it's a mismatch between 32-bit and 64-bit libraries (R, rJava, Java). HTH, Brian -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of charis Sent: Wednesday, February 11, 2009 8:40 PM To: r-help at r-project.org Subject: [R] Problem with loading rJava in R Hello. I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit RGui) and get the following error message even though the mentioned .dll file is located at the directory listed in the error message. I have tried to uninstall and reinstall the package but that does not resolve the problem. Then uninstallation and re-installation of R did not resolve the issue either. Any suggestions are appreciated. charis. <R Console>> library(rJava)Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'C:/R/R-2.7.2/library/rJava/libs/rJava.dll': LoadLibrary failure: The specified module could not be found. Error : .onLoad failed in 'loadNamespace' for 'rJava' Error: package/namespace load failed for 'rJava'> sessionInfo()R version 2.7.2 (2008-11-24) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices datasets tcltk utils methods base other attached packages: [1] Matrix_0.999375-17 lattice_0.17-17 filehash_2.0 svSocket_0.9-5 TinnR_1.0.2 R2HTML_1.59 Hmisc_3.4-4 RProbase_0.1-0 loaded via a namespace (and not attached): [1] cluster_1.11.11 grid_2.7.2 svMisc_0.9-5 tools_2.7.2 </R Console> -- View this message in context: http://www.nabble.com/Problem-with-loading-rJava-in-R-tp21968371p2196837 1.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. -------------------------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to "Merrill Lynch" are references to any company in the Merrill Lynch & Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. --------------------------------------------------------------------------