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.

    Good Question?
    0
     

    ?

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

    Accepted Solution 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.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    ozo

    13,785

    Solutions

    Expert in:

    • Perl
    • Math / Science
    • Regular Expressions
    • Shell Scripting
    • Algorithms

    rrz

    1,386

    Solutions

    Expert in:

    • JSP
    • Java
    • Java EE
    • Apache Web Server
    • HTML

    krakatoa

    2

    Articles

    576

    Solutions

    Expert in:

    • Java
    • Java EE
    • Programming
    • Programming Languages

    awking00

    2,134

    Solutions

    Expert in:

    • Oracle Database
    • Query Syntax
    • Databases
    • MS SQL Server
    • Java

    marlon_rnr

    8

    Articles

    ayanexpert

    1

    Articles

    Amitkumar Panchal

    460

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Oracle Database

    RELATED TOPICS view all topics

    1. Java
      (98,150)
    2. JSP
      (15,369)
    3. Java App Servers
      (7,000)
    4. Programming
      (51,621)
    5. Web Servers
      (32,318)
    6. Editors IDEs
      (25,094)
    7. Programming Languages
      (19,578)
    8. JavaScript
      (117,332)
    9. Web Languages/Standards
      (39,423)
    10. Web Applications
      (14,208)