Solved

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

Posted on 2011-02-24
3
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

738 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