Solved

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

Posted on 2008-12-03
2
4,813 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
Comment
Question by:rhithoun
2 Comments
 
LVL 6

Accepted Solution

by:
dnunes_br earned 500 total points
ID: 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.
0
 

Author Closing Comment

by:rhithoun
ID: 31522218
I found the solutions..
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hasOne  challenge 59 137
countPairs challenge 7 72
nestparen challenge 4 85
java jdbc batch example 8 32
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.

786 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