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

    Featured Post

    Course: AWS Professional Certification

    These classes are designed to help you pass the AWS Certified Solutions Architect – Associate, AWS Certified Developer, and AWS Certified SysOps Administrator Associate exams—all essential to a career as an AWS professional.

    Top Expert Contributor

    Essential articles and videos from the Experts

    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    More valuable questions with Expert answers

    Question: Hi folks, I've got some fairly simple java code that does an http url connection and successfully does a POST to a rest API, properly getting the response. Then I try to call another rest API with it and the following code hangs on the...

    Answer: I can't see any shared state between successive calls that would cause a problem like you mention. Are you saying that the first call (that works) and the second call (that hangs) are identical, ie. the same URL, post data and content type? If...

    Question: I am reading as below JAXB is high-level language while JAXP/SAX/DOM are assembly language for XML document management what is meaning of high level and assembly? please advise

    Answer: Go and read up on jaxb and jaxp. They are two different things aiming to achieve different goals. Jaxb used to bind XML to Java objects. Jaxp used to parse XML using Dom or sax.

    Question: Hello there, I am trying to create my first socket program between my java and Zebra LAbel printer and I have this code where I pass the printer ip and the port number. But when I run the appication I get error. Can somebody please guide me to...

    Answer: The Connection timed out error suggests that the connection details are perhaps wrong. In particular: (CODE) suggests that the target printer has IP-address 192.168.1.100, and that you are attempting to connect via port 6101. I've no...

    Question: hi, i have imported below maven project to eclipse http://www.journaldev.com/2623/spring-autowired-annotation when i clean then maven install where i see all the jars dowloaded to my local repository or laptop. please advise

    Answer: yes I normally copy an existing pom into a new project if I need to reuse the same structure/setup

    201601-LO-Qu-076

    Extend your technology team with the Experts Exchange community.

    — trusted by —

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

    dpearson

    917

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Programming-Other
    • Game Programming

    mccarl

    1,476

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Programming-Other
    • Algorithms

    gheist

    5,376

    Solutions

    Expert in:

    • Unix OS
    • Linux
    • Linux Distributions
    • Networking-Other
    • Apache Web Server

    Jim Cakalic

    1,248

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP

    Scott Fell,  EE MVE

    1

    Articles

    3,699

    Solutions

    Expert in:

    • ASP
    • CSS
    • HTML
    • Web Development-Other
    • JavaScript

    dravidnsr

    719

    Solutions

    Expert in:

    • Java EE
    • JSP
    • Java

    AndyAinscow

    11

    Articles

    3,246

    Solutions

    Expert in:

    • .NET Programming
    • C#
    • System Programming
    • Visual C++.NET
    • ASP.NET

    marlon_rnr

    9

    Articles

    1

    Solutions

    ayanexpert

    1

    Articles

    RELATED TOPICS view all topics

    1. Java
      (98,142)
    2. JSP
      (15,277)
    3. Java App Servers
      (6,800)
    4. Programming-Other
      (51,579)
    5. Web Servers
      (31,943)
    6. Editors IDEs
      (24,919)
    7. Programming Languages-Other
      (19,531)
    8. JavaScript
      (118,118)
    9. Web Languages/Standards-Other
      (39,377)
    10. Web Applications
      (13,943)