Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to deploy a servlet that includes javax.mail.* on Tomcat?

deploy includes servlet Tomcat
0
Posted

How to deploy a servlet that includes javax.mail.* on Tomcat?

0

Location: http://www.jguru.com/faq/view.jsp?EID=259166 Created: Nov 21, 2000 Modified: 2000-11-21 07:12:13.22 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Zuofeng Zeng (http://www.jguru.com/guru/viewbio.jsp?EID=240547 Just place the mail.jar and activation.jar files (and possibly the pop.jar file if you are using POP3) in the CLASSPATH of the web server. The simplest way to do this is to rely on the Java extensions framework. Add them to the JAVA_HOME/jre/lib/ext directory. Just copy the files there. Otherwise, set the CLASSPATH environment variable before starting Tomcat. The startup scripts retain the existing CLASSPATH, adding the Tomcat-specific stuff to the end. See What do I need to acquire in order to get started with JavaMail? to see where to get these files.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123