-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: javax/activation/DataSource #77
Comments
I have the same problem, Error in .jnew("org.apache.commons.mail.ImageHtmlEmail") : |
Hi ! I just got a brand new laptop, installed Java10, fired R/RStudio and... mailR wasn't working anymore. Quick fix : I installed Java8 (on top of the current Java10), modified the JAVA_HOME system variable to target the right Java version and... voilà ! mailR is working again. IMO, it boils down to a Java version issue, at least partially. |
Same here on Ubuntu 16.04. Forced to upgrade to 18.04 and everything, this breaks and I know nothing about Java. |
mailR will be updated in the coming days; I hope this issue will be resolved. @Nygdat On my Mac, I use the Java version that comes with the OS. Installing newest Java version from Oracle resulted in a mess. |
|
Sadly yes, because it depends on Commons Email (https://commons.apache.org/proper/commons-email/). In future I will try to break away from this considering most issues reported here relate to Java. |
Hi, encountering same problem. reinstalled java 8 but still facing the same issue. Any suggestions? |
Hi, I'm having the same issue with Java 8 |
Same issue hoped to find a fix in-progress via install_github() -> nojoy [mac 10.13.4] |
Freedom from Java: Agreed! I am forced to use Java 8 at work, and the package works well... Will upgrade Java libraries as interim solution to see whether it solves current issues. |
The Java EE modules are deprecated from Java 9 onwards: |
Hi, I'm having the same issue with Java 9 |
+1 looking forward to the update... |
@Hellvince thank you very much for your comment. I was able to take the following steps based on your suggestion. I am using Windows 10, RStudio Version 1.1.456, and R version 3.5.1 (2018-07-02) Download and install JDK 8: Check if the JAVA_HOME system variable exists or is set from R:
Open a command prompt or Power Shell as an Administrator and enter the following command
Add a new environment variable for "JAVA_HOME" Restart RStudio From there I was able to send emails using:
I also used debug = TRUE just to see everything was working. |
I have tried with JAVA11, JAVA 8. But still get following error. FYI:
|
Same problem here. Unable to configure the rJava package. I had to send a lot of emails and I did a workaround: If you are using Linux, you can use Remember to change the config of muttrc in the following function:
|
Hi @rpremraj any news on this topic? I have the same issue with R 3.5.0 / mailR / Java 11. Thanks! |
After putting following two jars into |
@wush978 , I have used your instruction , but still getting below error:
|
Linux Mint 19.2 x86_64-pc-linux-gnu The same error here
If I run Any ideas how to solve the issue under Linux? |
Thanks to @wush978 I was able to locate the missing jars. Just download it and copy it to the ...\R-3.6.2\library\mailR\java\ folder. Important - restart R after copying the jars. The following JAVA versions seems to work: #Sys.setenv(JAVA_HOME="C:\java\AdoptOpenJDK\jdk-11.0.6.10-hotspot"); |
Obrigado, Tbm adicionei ao projeto e funcionou! |
Thanks @wush978 , after doing this restarting R in R studio worked for me, but you have to install Java 8 and configure it to be default java using |
Trying to send an email after buying a new MacBook. I have updated all my packages, installed java9 but I am getting this error. I am using this package on another macbook with exactly same settings, so why is this not working?
Error in .jnew("org.apache.commons.mail.HtmlEmail") :
java.lang.NoClassDefFoundError: javax/activation/DataSource
The text was updated successfully, but these errors were encountered: