Forums Register Login

javamail

+Pie Number of slices to send: Send
Hi,
I downloaded JavaMail and JAF. Unzipped archive file and included the mail.jar and activation jar in my classpath. Still when i compile, i am getting the error, package javax.mail and javax.mail.internet not found in internet. Am i missing anything ?
I even tried copying bothe the jar files into the directory where i have my source code and did the compilation. It failed again ? Please help.
Sankar
+Pie Number of slices to send: Send
Its working. I reboot my machine and did the same process. Able to compile ???
Thanks
sangam
+Pie Number of slices to send: Send
Tomcat is a complete web server written in Java that provides support for the Servlet and JSP specifications. Tomcat is developed as a part of the Apache Jakarta Project. Both binaries and source are available from the Jakarta web site.
To run the JavaMailServlet, you must add the JavaMail and JavaBeans Activation Framework jar files to the lib directory under the directory in which you installed Tomcat. This will cause Tomcat to include these jar files in its classpath automatically. (Some packages of Tomcat version 4 include JavaMail support.) Depending on the version of Tomcat used, the mail.jar and activation.jar files should be copied to the lib directory or to an appropriate subdirectory of the lib directory.
+Pie Number of slices to send: Send
incorrect advise above!
It used to be correct but since Tomcat 4 all libraries should be specific per web app and not stored at server level.
Mind that there is a bug in Tomcat 4.0x that can cause leakage between web applications and jars in the server lib directory. This can cause the server to fail to start properly if you have for example a newer version of Xerces in a webapp lib path, but this is specifically NOT correct behaviour.
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 954 times.
Similar Threads
Including directories in a JAR
JDAVMail - NoSuchProviderException
Packaging JavaMail JARs into Application
configure JavaMail Server
Cannot find class javax/mail/message
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:42:33.