Such question can be answer by simple google search
JavaMailAPI
Presuming that what ever you do is Web Project than in you should add mail archive to lib folder that can be found as PATH_TO_PROJECT/web/WEB-INF/lib. If the "lib" folder does not exist created it in described location and drop the jar file there. NetBeans should take care of rest of it
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
Offline 6,656 posts
since Dec 2004