cannot resolve symbol 7 errors location: class javax.mail.internet.Internet

java , oracle India
  • 13 years ago
    Dear Friends,

    I have created a JAVA SOURCE in PL/SQL 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












Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The trouble with programmers is that you can never tell what a programmer is doing until it's too late.” - Seymour Cray