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

Posted on 2008-12-03
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(
      at javax.mail.Session.access$000(
      at javax.mail.Session$1.load(
      at javax.mail.Session.loadResource(
      at javax.mail.Session.loadProviders(
      at javax.mail.Session.<init>(
      at javax.mail.Session.getDefaultInstance(
      at com.kidsarthritis.action.MailClient.sendMail(
      at com.kidsarthritis.action.MailClient.main(
Like this..please help me.How to resolve this error.
Question by:rhithoun
    LVL 6

    Accepted Solution

    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.

    Author Closing Comment

    I found the solutions..

    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

    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 …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    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.

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now