File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes ClassNot found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ClassNot found error" Watch "ClassNot found error" New topic
Author

ClassNot found error

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
this is my class


this is the error i got .what else i need to add?



this example i got from web site
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Try switching to JRE 6, which includes the javax.activation.DataSource interface, or use mr Dittmer's excellent tactic described below.
I can recommend http://jarfinder.com/ to help you find JAR files in which a given class/interface is located.
Best wishes!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
There's no need to switch to Java 6, really - the jar file for JAF can be downloaded from java.sun.com, and works fine with earlier Java versions.


Ping & DNS - my free Android networking tools app
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
i added mail.jar and activation.jar files to the project.then i run the file.But it gives this error after taking sometimes.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Either port 25 is closed on 192.168.10.205, or 192.168.10.205 cannot be reached at all. The error message "Network is unreachable" makes me think the latter is the case.

Are you sure that a) you can reach that IP address at all, and b) there is a mail server running on that machine?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNot found error
 
Similar Threads
SocketException with JavaMail
how to send email using Java Program?
javax.mail.MessagingException: Unknown SMTP host: localhost:9090;
Unable to send mail through mail api
sending email in servlet