• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with mailing thru JSP  RSS feed

 
Sathya Samy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to compile a java file to create a mailer bean for my JSP program.But it could not compile as it displayed error messaes showing that javax.mail.* class is not found.How can I set mail.jar to to the Tomcat's classpath or what else should I do to create that mailer bean class file?


Thanks in advance!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place the mail.jar file in the $CATALINE_HOME/shared/lib folder to make it available to all web apps that your Tomcat server will be hosting, or place it in the WEB-INF/lib of a specific web app.

If you are compiling a bean outside of a JSP, you must make the jar file available to the classpath of the compiler. I highly recommend using Ant to automate your builds.
[ October 06, 2004: Message edited by: Bear Bibeault ]
 
Sathya Samy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I placed the jar file in the shared/lib folder and also tried placing it in the WEB-INF/lib . But both din't help .

Note : I have installed Tomcat 4.1 in my PC at D:.


Thanks in advance!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!