"Fail to install the R extensions"

gladysCJ
gladysCJ New Altair Community Member
edited November 5 in Community Q&A
Hello:

I am trying to install the R extensions but it is still not working.

The following error is shown when RapidMiner is trying to load the dynamic library "jri.DLL":

"The local binary library ...jri.dll could not be loaded.
Reason: Native library is already loaded in another class loader"

Any hints why this happened?

Thank you in advance,

Gladys

Answers

  • NeuralMarket
    NeuralMarket New Altair Community Member
    Did you install the rJava package in R first?
  • gladysCJ
    gladysCJ New Altair Community Member
    Yes, I did. I have installed it from a local zip file...After that I could find the jri.DLL and indicate the path name.
  • gladysCJ
    gladysCJ New Altair Community Member
    Thank you Tom for the hints...
    I decided to re-install the R using the version you is using (2.11.1) but the problem remains the same:

    "The local binary library ...jri.dll could not be loaded.
    Reason: Native library is already loaded in another class loader"

    I have 32-bits Windows Vista.
    My environment variables are:

    R_HOME: C:\Program Files\R\R-2.11.1

    JAVA_HOME: C:\Program Files\Java\jdk1.6.0_14\jre

    Path: C:\Program Files\R\R-2.11.1\bin;C:\Program Files\Java\jdk1.6.0_14\jre\bin;C:\Users\Gladys Castillo\Documents\R\win-library\2.11\rJava\jri

    May be someone, specialist in Java, knows what this kind of error means ?.

    My r.native lib is pointed to the jri.dll in the R library
    C:\Users\Gladys Castillo\Documents\R\win-library\2.11\rJava\jri

    Regards
  • land
    land New Altair Community Member
    Hi,
    how did you install the Extension and RapidMiner? It seems to me, that you might have either installed the extension twice, or there are some problems with the class loader...

    Greetings,
      Sebastian
  • keith
    keith New Altair Community Member
    gladysCJ wrote:

    Path: C:\Program Files\R\R-2.11.1\bin;C:\Program Files\Java\jdk1.6.0_14\jre\bin;C:\Users\Gladys Castillo\Documents\R\win-library\2.11\rJava\jri
    My PATH variable the architecture version included, e.g. C:\Program Files\R\R-2.12.2\bin\i386, and I have R and RM working together successfully.

    Recent builds of R have both 32 and 64 bit Windows support in one package, and sometimes it may be necessary to specify the full architecture path.  May be worth a try.

    Keith