I made import libraries for javax.mail.jar and activation .jar and additional.jar and when i try send mail error tells me that source not found for DataHandler.
Asked
Active
Viewed 215 times
0
-
have you copied your libraries in libs folder & added it into build path? – Karan Maru Feb 25 '15 at 05:02
1 Answers
0
You don't need the source code at runtime. The error you're getting when you try to send mail is because it can't find the DataHandler class, which means you don't have activation.jar available in your runtime CLASSPATH.

Bill Shannon
- 29,579
- 6
- 38
- 40
-
how to set CLASSPATH in linux mint because i use android studio on linux mint. – Montaser Hatem Feb 26 '15 at 04:07
-
I have no idea, but if you're actually running the application in android studio I'm sure the documentation will tell you how to include additional jar files in the classpath that your application runs with. – Bill Shannon Feb 26 '15 at 07:58
-
-
You included all three of the jar files? Then I have no idea. You need an android studio expert. Does [this](http://stackoverflow.com/questions/18735923/importing-jar-libraries-into-android-studio) or [this](http://stackoverflow.com/questions/16779959/android-studio-importing-external-library-jar) help? – Bill Shannon Feb 28 '15 at 00:32