unidentified java error??

@

@n!e

Guest
hi,
i've developed a chat application using java which i would like to link it together wit the email module. Basically, the email module itself has oredi has it's own .java sourcecodes & a main. Its also the same for my chat application.
At 1st, i've run my email module separately n it runs perfectly with no erros. But as i combined it together with the chat application, errors as below occurs. Can anyone out ther tell me what's wrong with it.
Thanks in advance.


C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:74: cannot resolve symbol
symbol : variable RecipientType
location: class Message
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(mc.To,false));
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:75: cannot resolve symbol
symbol : variable RecipientType
location: class Message
msg.setRecipients(Message.RecipientType.CC,
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:88: incompatible types
found : javax.mail.internet.MimeMessage
required: Message
Message msg = new MimeMessage(session);
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:89: cannot resolve symbol
symbol : method setText (java.lang.String)
location: class Message
msg.setText(mc.BodyText);
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:92: cannot resolve symbol
symbol : method setFrom (javax.mail.internet.InternetAddress)
location: class Message
msg.setFrom (new InternetAddress(mc.From));
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:95: cannot resolve symbol
symbol : variable RecipientType
location: class Message
msg.setRecipients(Message.RecipientType.TO,
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:97: cannot resolve symbol
symbol : variable RecipientType
location: class Message
msg.setRecipients(Message.RecipientType.CC,
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:99: cannot resolve symbol
symbol : method setHeader (java.lang.String,java.lang.String)
location: class Message
msg.setHeader("X-Mailer",MainData.progName);
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:100: cannot resolve symbol
symbol : method setSubject (java.lang.String)
location: class Message
msg.setSubject(mc.Subject);
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:101: cannot resolve symbol
symbol : method setSentDate (java.util.Date)
location: class Message
msg.setSentDate(new Date());
^
C:\Documents and Settings\user\Desktop\fyp stuff\source\email\SMTP.java:104: cannot resolve symbol
symbol : method send (Message)
location: class javax.mail.Transport
Transport.send(msg);
^
11 errors
Exit code: 1
There were errors:eek:
 
Very simple.
1. The variable "msg" hasn't been declared anywhere.
2. The types "Message" and "MimeMessage" are not the same and incompatible (apparently).
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back