Solved

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

Posted on 2011-02-24
3
351 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
Comment Utility

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
Comment Utility
Hi for_yan -

That's what was happening.  Weird.

Thanks.  Points awarded.

brian
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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:

763 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

7 Experts available now in Live!

Get 1:1 Help Now