A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Other JSE/JEE APIs
Java mail api
Joined: Aug 16, 2005
Aug 19, 2005 02:16:00
when i try to compile an javamail application using tomcat5 the error message is as follows.I have set the classpaths also
Unable to compile class for
An error occurred at line: 9 in the jsp file: /MailExample.jsp
[javac] Compiling 1 source file
C:\jakarta-tomcat-5.0.16\work\Catalina\localhost\examples\org\apache\jsp\MailExample_jsp.java:7: package javax.mail does not exist
The problem seems to be of the classpath.
Joined: Apr 14, 2004
Aug 19, 2005 02:49:00
The problem seems to be of the classpath
Correct. The JavaMail jar files need to be in the classpath. In the case of a WebApp that is usually in WEB-INF/lib.
Joined: Feb 13, 2004
Sep 08, 2005 05:10:00
Apart from what Paul has mentioned in his post, include the pop3.jar, jmail.jar, mailapi.jar and activation.jar in the classpath.
I agree. Here's the link:
subject: Java mail api
Have problem when I run jsp on server.
Problem with mailing thru JSP
Tomcat and JSP (Interesting problem)
mail sending in jsp
Need help in javax.mail package.......very urgent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015