Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
ruby mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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.
 
Johannes de Jong
tumbleweed
Bartender
Posts: 5089
  • Mark post as helpful
  • send pies
  • 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).]
 
Kaustubh Patil
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • 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.

 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • 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
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!