cannot find symbol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jank
    New Member
    • Aug 2007
    • 7

    cannot find symbol

    hi,
    I wrote sending mass email program in java. If i try to compile using ant compiler, i am getting this error.

    [javac] c:\mail\src\com \mail\action\Se ndMail.java:125 : cannot find
    symbol
    [javac] symbol : method connect(java.la ng.String,java. lang.String)
    [javac] location: class javax.mail.Tran sport
    [javac] t.connect(SMTP_ AUTH_USER, SMTP_AUTH_PWD);
    [javac] ^
    [javac] 1 error

    BUILD FAILED
    C:\mail\build.x ml:43: Compile failed; see the compiler error output for details.

    any idea!!
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by jank
    hi,
    I wrote sending mass email program in java. If i try to compile using ant compiler, i am getting this error.

    [javac] c:\mail\src\com \mail\action\Se ndMail.java:125 : cannot find
    symbol
    [javac] symbol : method connect(java.la ng.String,java. lang.String)
    [javac] location: class javax.mail.Tran sport
    [javac] t.connect(SMTP_ AUTH_USER, SMTP_AUTH_PWD);
    [javac] ^
    [javac] 1 error

    BUILD FAILED
    C:\mail\build.x ml:43: Compile failed; see the compiler error output for details.

    any idea!!
    Yep, the compiler can't find method 'connect' for object 't' which is a javax.mail.Tran sport
    object. Check the API docs for that class.

    kind regards,

    Jos

    Comment

    Working...