I use tomcat5.0 win2000server javamail1.3 and jaf1.0.2.
I copy the mail.jar and activation.jar to my own dirctory like follows:
(mydir)\WEB-INF\lib\mail.jar
(mydir)\WEB-INF\lib\activation.jar
but i can't use the javamail.
the error report:
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
D:\server\Tomcat 5.0\work\Catalina\localhost\begjsp-ch17\org\apache\jsp\testJavaMail_jsp.java:6: package java.mail does not exist
import java.mail.*;
^
D:\server\Tomcat 5.0\work\Catalina\localhost\begjsp-ch17\org\apache\jsp\testJavaMail_jsp.java:8: package javax.mail.Internet does not exist
import javax.mail.Internet.*;
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:458)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
org.apache.jasper.JspCompilationContext.compile(
Js pCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
please help me