This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 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 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
    
    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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
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
Sheriff

Joined: Oct 27, 2005
Posts: 20136
    
  30

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 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNot found error
 
It's not a secret anymore!