File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ClassNot found error" Watch "ClassNot found error" New topic

ClassNot found error

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1240
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
Try switching to JRE 6, which includes the javax.activation.DataSource interface, or use mr Dittmer's excellent tactic described below.
I can recommend to help you find JAR files in which a given class/interface is located.
Best wishes!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
There's no need to switch to Java 6, really - the jar file for JAF can be downloaded from, and works fine with earlier Java versions.
sam liya
Ranch Hand

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

Joined: Oct 27, 2005
Posts: 20274

Either port 25 is closed on, or 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?

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: ClassNot found error
It's not a secret anymore!