Solved

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

Posted on 2011-02-24
3
369 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Are you irritated by repeating emails issue in Microsoft Outlook 2016 after recent update ?  Lets’ see how to resolve and prevent duplicate emails in the Outlook 2016 using some simple techniques.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

816 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

12 Experts available now in Live!

Get 1:1 Help Now