• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with mailing thru JSP

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic