aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes ClassNot found error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "ClassNot found error" Watch "ClassNot found error" New topic
Author

ClassNot found error

sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 690
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
Bartender

Joined: Oct 04, 2006
Posts: 2194
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: 35440
    
    9
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.


Android appsImageJ pluginsJava web charts
sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 690
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: 19232

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ClassNot found error
 
Similar Threads
javax.mail.MessagingException: Unknown SMTP host: localhost:9090;
Unable to send mail through mail api
how to send email using Java Program?
SocketException with JavaMail
sending email in servlet