javax.mail package

S

saurabh.chakote

hello Friends,

While writing the program for sending mail.
I am getting the exception:

java.lang.NoClassDefFoundError: javax/mail/Message

Can anybody resolve this problem or
suggest me basic precaution to avoid the such error.


happy surfing
Saurabh Chakote
 
T

Thomas Weidenfeller

java.lang.NoClassDefFoundError: javax/mail/Message

You did not install the package correctly, or the manifest file of your
application's jar file is wrong. Read and follow the installation
instruction for JavaMail and also read the following from the JDK
documentation:

http://java.sun.com/j2se/1.5.0/docs/guide/extensions/index.html
http://java.sun.com/j2se/1.5.0/docs/guide/extensions/spec.html
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
http://java.sun.com/j2se/1.5.0/docs/guide/jar/index.html

You might also consider asking beginner's questions in comp.lang.java.help

/Thomas
 
R

Roedy Green

You might also consider asking beginner's questions in comp.lang.java.help

You have a pretty wide definition of beginner. Next you will be
directing EJB question to comp.lang.java.help.
 
Joined
Apr 11, 2007
Messages
1
Reaction score
0
Newby.

Sorry, but all of you are putting about basics errors.
I am having same issue, all solutions tells me to make sure that mail.jar is in classpath, but it is, I also tried to put the file in classpath and nothing.
It is beyond basic concepts.
 
Joined
Jan 3, 2008
Messages
1
Reaction score
0
We have the same issue

Hi,

We are facing the same issue. Can you please tell me how you resolved this one?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top