Where do I place the JAR files so that I can use JavaMail from JSP?

John Zukowski

Using the JavaMail API from JSP pages requires the JavaMail and JavaBeans Activation Framework JAR files (mail.jar and activation.jar respectively) to be in the CLASSPATH for the Java runtime of your JSP-enabled web server. While most servers allow you to configure their CLASSPATH, either through mucking with batch files or through some configuration program, the easiest way to configure the server is to take advantage of the standard Java Extensions Mechanism. Just copy the JAR files into the ext under your Java runtime directory. For instance, Windows users of Java 1.2.2 who installed to the default location would copy the JAR files to C:JDK1.2.2JRELIBEXT.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact