Dear community, unfortunately I did not manage load the rJava package receiving the following error-message:> library("rJava")Error in inDL(x, as.logical(local), as.logical(now), ...) : kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht laden: LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Error : .onLoad in 'loadNamespace' f?r 'rJava' fehlgeschlagen Fehler: Laden von Paket/Namensraum f?r 'rJava' fehlgeschlagen Translation: can't load library ... rJava.dll LoadLibrary failure: the module was not found Reinstalling the package did not help, installing the latest developement version didn't help as well. The shared library rJava.dll is in place (exactly where R is looking for it)! Are there any ideas, what's wrong. I'd appreciate any kind of help very much, as I need rJava urgently to use RWeka and iPlots. Best regards, Felix
Most likely Java is not in place, including in the DLL search path. On Fri, 23 Jan 2009, drflxms wrote:> Dear community, > > unfortunately I did not manage load the rJava package receiving the following > error-message: > > >> library("rJava") > Error in inDL(x, as.logical(local), as.logical(now), ...) : > kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht > laden: > LoadLibrary failure: Das angegebene Modul wurde nicht gefunden.You should get a popup here with more information (from Windows). The problem is not rJava.dll, but one of its dependencies.> Error : .onLoad in 'loadNamespace' f?r 'rJava' fehlgeschlagen > Fehler: Laden von Paket/Namensraum f?r 'rJava' fehlgeschlagen > > > Translation: > can't load library ... rJava.dll > LoadLibrary failure: the module was not found > > Reinstalling the package did not help, installing the latest developement > version didn't help as well. > > The shared library rJava.dll is in place (exactly where R is looking for it)! > > Are there any ideas, what's wrong. > I'd appreciate any kind of help very much, as I need rJava urgently to use RWeka and iPlots. > > Best regards, > Felix > > ______________________________________________ > 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
On 1/23/2009 7:38 AM, drflxms wrote:> Dear community, > > unfortunately I did not manage load the rJava package receiving the following > error-message: > > >> library("rJava") > Error in inDL(x, as.logical(local), as.logical(now), ...) : > kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht > laden: > LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. > > Error : .onLoad in 'loadNamespace' f?r 'rJava' fehlgeschlagen > Fehler: Laden von Paket/Namensraum f?r 'rJava' fehlgeschlagen > > > Translation: > can't load library ... rJava.dll > LoadLibrary failure: the module was not foundThat message comes from Windows, not R, and it's misleading. It does not say that rJava.dll was not found, it says that a DLL needed by it is not found. It would be helpful if it told you which one. You should complain to Microsoft about it. If rJava.dll had been missing, the English message would have been shared library 'rJava' not found The pedump utility (in the Rtools set, see www.murdoch-sutherland.com/Rtools) can tell you what the dependencies are: pedump -i rJava.dll shows that it imports things from these dlls: R.dll KERNEL32.dll msvcrt.dll jvm.dll The first 3 are routine; without those R wouldn't work. (Without KERNEL32.dll, nothing in Windows would work.) So as Brian said, it's likely jvm.dll that it can't find, or possibly a DLL that it depends on. Did you install Java first, as rJava requires? Duncan Murdoch> > Reinstalling the package did not help, installing the latest developement > version didn't help as well. > > The shared library rJava.dll is in place (exactly where R is looking for it)! > > Are there any ideas, what's wrong. > I'd appreciate any kind of help very much, as I need rJava urgently to use RWeka and iPlots. > > Best regards, > Felix > > ______________________________________________ > 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.