Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream

    Question by:
    On

    Topics:

    Hi ,
    I am doing sendmail.But i was got error "Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
          at javax.mail.Session.loadProvidersFromStream(Session.java:928)
          at javax.mail.Session.access$000(Session.java:174)
          at javax.mail.Session$1.load(Session.java:870)
          at javax.mail.Session.loadResource(Session.java:1084)
          at javax.mail.Session.loadProviders(Session.java:889)
          at javax.mail.Session.<init>(Session.java:210)
          at javax.mail.Session.getDefaultInstance(Session.java:299)
          at com.kidsarthritis.action.MailClient.sendMail(MailClient.java:22)
          at com.kidsarthritis.action.MailClient.main(MailClient.java:85)
    Like this..please help me.How to resolve this error.

     

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2008-12-03 at 04:19:22ID: 23085207

    The java.lang.NoClassDefFoundErro happens when the compiler couldn't find you class on you classpath. Make sure your javamail libraries are in your classpath when you try to complile/run your program.

    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone. Privacy Policy Terms of Use

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201507-LO-Qu-065

    RELATED TOPICS view all topics

    1. Java
      (97,553)
    2. JSP
      (15,270)
    3. Java App Servers
      (6,938)
    4. Web Servers
      (32,135)
    5. Programming
      (50,772)
    6. Editors IDEs
      (25,030)
    7. JavaScript
      (116,310)
    8. Programming Languages
      (19,435)
    9. Web Languages/Standards
      (39,267)
    10. Web Applications
      (14,044)