This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNot found error

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20550
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic