rpremraj / mailR

A utility to send emails from the R programming environment
http://rpremraj.github.io/mailR/
190 stars 57 forks source link

Error with sending with most recent Java Update #103

Open zekePhoenix opened 3 years ago

zekePhoenix commented 3 years ago

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.

fgoerlich commented 2 years ago

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

JuliaKnoebl commented 2 years ago

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?

fgoerlich commented 2 years ago

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

rpremrajGit commented 2 years ago

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

fgoerlich commented 2 years ago

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.

sclewis23 commented 2 years ago

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.