Skip to content

[R-pkg-devel] rJava (broken installation?)

3 messages · Helmut Schütz, Gábor Csárdi, Dirk Eddelbuettel

#
Dear all,

in one of my packages I import from package xlsx, which itself imports 
rJava.
I have the current Java (jre1.8.0_261) installed:
  ? JAVA_VERSION="1.8.0_261"
  ? OS_NAME="Windows"
  ? OS_VERSION="5.2"
  ? OS_ARCH="amd64"

However:
  ? devtools::session_info("rJava")
  ? - Session info 
---------------------------------------------------------------
  ?? setting? value
  ?? version? R version 4.0.3 (2020-10-10)
  ?? os?????? Windows 7 x64 SP 1
  ?? system?? x86_64, mingw32
  ?? ui?????? Rgui
  ?? language EN
  ?? collate? German_Germany.1252
  ?? ctype??? German_Germany.1252
  ?? tz?????? Europe/Vienna
  ?? date???? 2020-10-13

  ? - Packages 
-------------------------------------------------------------------
  ?? ! package * version date?????? lib source
  ?? D rJava???? 0.9-13? 2020-07-06 [1] CRAN (R 4.0.2)

  ? [1] D:/Program Files/R/R-4.0.3/library

  ?? D -- DLL MD5 mismatch, broken installation.

I found only this: 
https://community.rstudio.com/t/error-dll-md5-mismatch-broken-installation/64141 
with no answer.

Deleted rJava from my library and made a new install, no avail.

The functions I need from xlsx work as intended but I'm worried a bit.

Helmut
#
Make sure you quit from all R sessions before you reinstall rJava, and
also that it is not loaded in the current session.

You can also run tools::checkMD5sums("rJava") to check the MD5 sums.

Gabor
On Tue, Oct 13, 2020 at 4:55 PM Helmut Sch?tz <helmut.schuetz at bebac.at> wrote:
#
On 13 October 2020 at 17:54, Helmut Sch?tz wrote:
| in one of my packages I import from package xlsx, which itself imports 

In case you were unaware there is also openxlsx which may be sufficient for
your import/export needs, and which is does not need a Java toolchain.

Dirk