This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 1032
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: 39571
    
  27
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 - updated with new look and Ping home screen widget
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1032
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: 19552
    
  16

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
sending email in servlet
Unable to send mail through mail api
SocketException with JavaMail
javax.mail.MessagingException: Unknown SMTP host: localhost:9090;
how to send email using Java Program?