• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail jar, where do I put it?

 
Vinnie Jenks
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to send email from a web form using the JavaMail API....but I'm fairly new to Java and I'm not sure what I'm doing wrong.

I'm using NetBeans and I downloaded the JavaMail API from Sun. Where do I put it? How do I "install" it?

I tried putting it in the JDK "lib" directory and in my own site's WEB-INF/lib directory (which is in my CLASSPATH) and I still can't make an "import" reference in my Java class to "javax.mail" - NetBeans still will not recognize it!

Thanks!
 
Nikhil Vasaikar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting it in <jdk_home>\jre\lib\ext folder

Nikhil
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!