Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Package Javax.Mail does not exist

843834Jul 17 2008 — edited Jul 21 2008
I'm working on a program that emails information after getting it from a database. I used some of the demo programs included with the JavaMail API and they all ran fine. I then made my own program to use the thing I learned and test emailing the kind of data I would get from my database. All these programs compile and run fine. When I added the email capability to my database program and compiled it I got:
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:19: package javax.mail does not exist
import javax.mail.Authenticator;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:20: package javax.mail does not exist
import javax.mail.Message;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:21: package javax.mail does not exist
import javax.mail.Session;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:22: package javax.mail does not exist
import javax.mail.Transport;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:23: package javax.mail.internet does not exist
import javax.mail.internet.InternetAddress;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:24: package javax.mail.internet does not exist
import javax.mail.internet.MimeBodyPart;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:25: package javax.mail.internet does not exist
import javax.mail.internet.MimeMessage;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\service\DefaultEmailPDFService.java:26: package javax.mail.internet does not exist
import javax.mail.internet.MimeMultipart;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\util\SMTPAuthenticator.java:8: package javax.mail does not exist
import javax.mail.Authenticator;
C:\Documents and Settings\DCosta\Netbeans\6.0\workspace\DPSLib\src\com\agois\dps\util\SMTPAuthenticator.java:9: package javax.mail does not exist
import javax.mail.PasswordAuthentication;
I wrote and ran all these programs in NetBeans and can not understand why one program works fine when it comes to the imports and another does not. Anyone who helps, thanks in advance
-Doug

Edited by: DougCosta on Jul 17, 2008 11:05 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2008
Added on Jul 17 2008
7 comments
5,022 views