At 10:40 AM -0400 9/7/04, <[EMAIL PROTECTED]> wrote:
Hi all,

I'm a newbie, so please forgive me if this problem has already been addressed. I downloaded the commons-email from the Sandbox and wanted to try it out; but I could not get the example for the SimpleMail working. I kept getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException
at SimpleMail.main(SimpleMail.java:10)


I have checked my Classpath multiple times and I have javamail-1.3.1 and jaf-1.0.2 and commons-lang in my classpath (using JDK 1.4.2_05 SE). So I wrote a simple email sender program without using the commons-email and it worked without a hitch (I'm using Eclipse 3 as my IDE).

So I guess, what I want to know is this a problem with the commons-email or is there something I am not doing.

no need to apologize -- commons-email doesn't have a very high profile, so not much has been addressed.


I have trouble seeing how it can be a problem with commons-email, although if you wrote an app using JavaMail directly, then there's clearly something strange going on.

Are you saying that those jars are on your classpath, as in part of the CLASSPATH environment variable?

For what it's worth, I just wrote an extremely simple test class (main method below) and ran it from within my IDE (JBuilder) and didn't get any errors.


public static void main(String[] argv) throws MessagingException {

        SimpleEmail msg = new SimpleEmail();
        msg.setHostName("mail.jgsullivan.com");
        msg.setFrom("[EMAIL PROTECTED]");
        msg.addTo("[EMAIL PROTECTED]");
        msg.setSubject("testing SimpleEmail");
        msg.setMsg("This is a test");
        msg.send();
    }

So I think it's ultimately a local problem.

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to