Home » Developer & Programmer » JDeveloper, Java & XML » cannot resolve symbol 7 errors location: class javax.mail.internet.Internet
cannot resolve symbol 7 errors location: class javax.mail.internet.Internet [message #245073] Fri, 15 June 2007 02:12 Go to next message
Ankur Bhatia
Messages: 14
Registered: May 2006
Location: India
Junior Member

Dear Friends,

I have created a JAVA SOURCE in PL/SQL (Oracle 9.2.0.5.0) to send mail in oracle. But when i compile the source code, it prompts me with a message:

Warning: Java created with compilation errors.
When I use Show Errors, it show:

SQL> show errors java source "SendMail"
Errors for JAVA SOURCE SendMail:

LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 SendMail:44: cannot resolve symbol
0/0 7 errors
0/0 location: class javax.mail.internet.InternetAddress
0/0 InternetAddress[] TheAddresses = new
InternetAddress.parse(Recipient);

0/0 ^
0/0 SendMail:51: cannot resolve symbol
0/0 symbol : class parse
0/0 location: class javax.mail.internet.InternetAddress
0/0 InternetAddress[] TheAddresses = new

LINE/COL ERROR
-------- -----------------------------------------------------------------
InternetAddress.parse(CcRecipient);

0/0 ^
0/0 SendMail:58: cannot resolve symbol
0/0 symbol : class parse
0/0 location: class javax.mail.internet.InternetAddress
0/0 InternetAddress[] TheAddresses = new
InternetAddress.parse(BccRecipient);

0/0 ^
0/0 SendMail:70: cannot resolve symbol

LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 symbol : method MimeBodyPart ()
0/0 location: class SendMail
0/0 MimeBodyPart mbp = MimeBodyPart();
0/0 ^
0/0 SendMail:83: cannot resolve symbol
0/0 symbol : method subString (int,int)
0/0 location: class java.lang.String
0/0 FileDataSource fds = new
FileDataSource(Attachments.subString(StartIndex, PosIndex));

0/0 ^

LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 SendMail:93: cannot resolve symbol
0/0 symbol : method MimeBodyPart ()
0/0 location: class SendMail
0/0 MimeBodyPart mbp = MimeBodyPart();
0/0 ^
0/0 SendMail:94: cannot resolve symbol
0/0 symbol : method subString (int)
0/0 location: class java.lang.String
0/0 FileDataSource fds = new
FileDataSource(Attachments.subString(StartIndex));


LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 ^
0/0 symbol : class parse
SQL>

Please help me in solving this problem

Thanks in advance
Ankur

[Updated on: Fri, 15 June 2007 02:30]

Report message to a moderator

Re: cannot resolve symbol 7 errors location: class javax.mail.internet.Internet [message #245082 is a reply to message #245073] Fri, 15 June 2007 02:24 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Instead of using italic tags/font which is hard to read, use code tags.
And always post your Oracle version (4 decimals).

Regards
Michel
Re: cannot resolve symbol 7 errors location: class javax.mail.internet.Internet [message #245090 is a reply to message #245082] Fri, 15 June 2007 02:37 Go to previous messageGo to next message
Ankur Bhatia
Messages: 14
Registered: May 2006
Location: India
Junior Member

Please check it now dear
Re: cannot resolve symbol 7 errors location: class javax.mail.internet.Internet [message #245115 is a reply to message #245090] Fri, 15 June 2007 03:48 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Thanks, now someone may help.
I unfortunatly can't as I don't know Java but it seems some classes are missing.

Regards
Michel
Re: cannot resolve symbol 7 errors location: class javax.mail.internet.Internet [message #245561 is a reply to message #245115] Mon, 18 June 2007 02:28 Go to previous message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Do you have j2ee.jar (any version, e.g. jee_1_4.jar) in your classpath?
Previous Topic: ADF - Jasper
Next Topic: XLS output in applications
Goto Forum:
  


Current Time: Sun Nov 24 21:20:47 CST 2024