Solved

Javamail Curiousness - LineInputStream not found - but is in classpath!

Posted on 2011-02-24
3
361 Views
Last Modified: 2012-05-11
Hello friends -

I've got an application that knows how to send mail, and it will send emails all day long if I don't try to utilize attachments.  But, if I try to attach some Mime parts, I get a ClassDefNotFound com.sun.mail.util.LineInputStream error bubble up; but I do have mail.jar and activation.jar on my classpath!  

Has anyone faced this?  

Thanks.
brian
0
Comment
Question by:passionlessDrone
3 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 34973799

Maybe  you want to check sismilart story here (see at the bottom):
http://www.coderanch.com/t/458013/java/java/Exception-trying-compile-run-JavaMail
0
 

Author Closing Comment

by:passionlessDrone
ID: 34973955
Hi for_yan -

That's what was happening.  Weird.

Thanks.  Points awarded.

brian
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34974038
It might help to see your classpath. Place the following as the first line of main:



System.out.println(System.getProperty("java.class.path"));

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse java  build path 6 45
How to Add someones calendar to Exchange on Iphone 1 63
Cipher Configuration on Apache HTTPD 4 53
Opera UI gone nuts 4 52
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Read this checklist to learn more about the 15 things you should never include in an email signature.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

895 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