[R] Problem with loading rJava in R
charis at kaskiris.com
Thu Feb 12 22:27:55 CET 2009
Thank you for helping.
I am running the 32-bit version of R on a 64-bit Windows XP machine. After
reinstalling the rJava package I started getting a windows pop up with the
Rgui.exe - Unable to Locate Component
"This application has failed to start because jvm.dll was not found.
Re-installing the application may fix this problem"
I have installed the 32-bit version of Java, added the jvm.dll to the
Windows PATH environment variable
I have also reinstalled R.
I still get the error below without any pop-up message:
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
LoadLibrary failure: The specified module could not be found.
Error : .onLoad failed in 'loadNamespace' for 'rJava'
Error: package/namespace load failed for 'rJava'
Thanks for the help
Uwe Ligges-3 wrote:
> Or better ask, is the an 64-bit version of R? I only know of one
> commercial beta release ...
> If so, is this an rJava version made for this version of R? Does any
> Windows error message appear on your screen?
> Uwe Ligges
> Rowe, Brian Lee Yung (Portfolio Analytics) wrote:
>> 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).
>> -----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
>> I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit
>> and get the following error message even though the mentioned .dll file
>> located at the directory listed in the error message. I have tried to
>> uninstall and reinstall the package but that does not resolve the
>> Then uninstallation and re-installation of R did not resolve the issue
>> either. Any suggestions are appreciated. charis.
>> <R Console>
>> Error in inDL(x, as.logical(local), as.logical(now), ...) :
>> unable to load shared library
>> LoadLibrary failure: The specified module could not be found.
>> Error : .onLoad failed in 'loadNamespace' for 'rJava'
>> Error: package/namespace load failed for 'rJava'
>> R version 2.7.2 (2008-11-24)
>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>> attached base packages:
>>  stats graphics grDevices datasets tcltk utils methods
>> other attached packages:
>>  Matrix_0.999375-17 lattice_0.17-17 filehash_2.0
>> TinnR_1.0.2 R2HTML_1.59 Hmisc_3.4-4 RProbase_0.1-0
>> loaded via a namespace (and not attached):
>>  cluster_1.11.11 grid_2.7.2 svMisc_0.9-5 tools_2.7.2
>> </R Console>
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/Problem-with-loading-rJava-in-R-tp21968371p21985387.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help