Solved

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

Posted on 2008-12-03
4,741 Views
Last Modified: 2013-11-24
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.
0
Question by:rhithoun
    2 Comments
     
    LVL 6

    Accepted Solution

    by:
    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.
    0
     

    Author Closing Comment

    by:rhithoun
    I found the solutions..
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
    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.

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now