mailR icon indicating copy to clipboard operation
mailR copied to clipboard

Error with sending with most recent Java Update

Open zekePhoenix opened this issue 3 years ago • 6 comments

The recent Jave update (Version 8 Update 291) doesn't seem to work with mailR. I had to revert to a previous version of Java. Then it worked as expected.

zekePhoenix avatar Jun 15 '21 19:06 zekePhoenix

Is this the message you get? java.lang.NoClassDefFoundError: javax/activation/DataSource

fgoerlich avatar Sep 16 '21 19:09 fgoerlich

Is this the message you get? java.lang.NoClassDefFoundError: javax/activation/DataSource

Yes, I get the same error message with Java 1.8.0_311 . Is there a way to resolve this?

JuliaKnoebl avatar Dec 02 '21 20:12 JuliaKnoebl

I didn´t find it. I switch to emayili, https://datawookie.github.io/emayili/. It works perfect, and has no Java dependency.

fgoerlich avatar Dec 02 '21 22:12 fgoerlich

Hi folks -- please switch to this GitHub repository: https://github.com/rpremrajGit/mailR. The latest version of mailR fixes the issue.

rpremrajGit avatar Dec 03 '21 14:12 rpremrajGit

Many thanks for the information. I am unable to install version 0.8:

* installing *source* package 'mailR' ...
** package 'mailR' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'mailR'
    finding HTML links ... done
    send.mail                               html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'mailR':
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Error: loading failed
Ejecución interrumpida
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/FJG/Documents/R/win-library/4.1/mailR'
* restoring previous 'C:/Users/FJG/Documents/R/win-library/4.1/mailR'
Warning in install.packages :
  installation of package ‘mailR’ had non-zero exit status

I have installed the lates version of rJava & Java version "1.8.0._311" on a Windows 8.1 machine.

fgoerlich avatar Dec 04 '21 13:12 fgoerlich

Hey this package repo was moved to: https://github.com/rpremrajGit/mailR and this issue has been resolved in the latest version of mailR 0.8 on CRAN.

sclewis23 avatar Dec 10 '21 16:12 sclewis23