File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes JavaMail jar, where do I put it? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "JavaMail jar, where do I put it?" Watch "JavaMail jar, where do I put it?" New topic
Author

JavaMail jar, where do I put it?

Vinnie Jenks
Ranch Hand

Joined: Apr 26, 2004
Posts: 207
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

Joined: Aug 18, 2004
Posts: 56
Try putting it in <jdk_home>\jre\lib\ext folder

Nikhil
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: JavaMail jar, where do I put it?
 
Similar Threads
jstl and netbeans
tc/common/lib and JavaMail
Where to put the servlet.jar
Problems setting up JFreeChart in NetBeans
Netbeans classpath problem