This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Need help in javax.mail package.......very urgent

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends,
I tried to execute the program which sends mail using the javax.mail package. But when i compiled the program, javax.mail.* package not found message is displayed. What should i do to import this package and compile this program. Could anyone suggests me in this matter. It's very urgent.
Thanks in advance.
bye,
ruby.
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you downloaded & installed Servlet Class ?
Also see THIS.
Good luck.

[This message has been edited by Johannes de Jong (edited August 06, 2001).]
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
go to the site java.sun.com/products. I think there is a drop down there where u get all the details about the products. javax.mail is one of them. U need to add a jar file called "mail.jar" to your classpath directory. that jar file contains all the required classes .The error you are getting may be because you do not have that jar file or the classpath is wrong. see if it works..
kaustubh.

Originally posted by ruby mohan:
Hello friends,
I tried to execute the program which sends mail using the javax.mail package. But when i compiled the program, javax.mail.* package not found message is displayed. What should i do to import this package and compile this program. Could anyone suggests me in this matter. It's very urgent.
Thanks in advance.
bye,
ruby.


 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually you need to put mail.jar & activation.jar in your classpath to import them & use JavaMail correctly. I cant for the life of me remember where I got them from but I know I did a search on the web & found them
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ruby,
You need to install
Java Mail API and add mail.jar in your system classpath.
Also you have to download and install JavaBeans actvation Framework and add activation.jar ion your classpath.
This will sove your problem.
If you want you can go to this tutorial http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html
This will give you a better understanding.
Thanks and best of luck
Maya
 
Grow a forest with seedballs and this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic