Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9678

Re: I try to send e-mail for java but I get run time error

Date 2011-11-06 16:21 -0500
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: I try to send e-mail for java but I get run time error
References <e8f0b81a-c1ad-41ad-8447-0a44f339e33f@v15g2000vbm.googlegroups.com> <4e9d8af9$0$30754$ba4acef3@reader.news.orange.fr>
Message-ID <4eb6fa51$0$290$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 10/18/2011 10:19 AM, jlp wrote:
> Le 18/10/2011 12:12, sahm a écrit :
>> Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/
>> Message
>> at netscan.SendMail.sendEmail(SendMail.java:31)
>> at netscan.NetScan.main(NetScan.java:104)
>> Caused by: java.lang.ClassNotFoundException: javax.mail.Message
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

> the error is clear. It misses the import the javax.mail.* package (JEE API)

It misses at least one class in javax.mail package that is used
in the code.

The import does not actually put any references in the class
file it only allows shorter names to be used in the source code.

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I try to send e-mail for java but I get run time error sahm <sahm007@gmail.com> - 2011-10-18 03:12 -0700
  Re: I try to send e-mail for java but I get run time error jlp <jlp@jlp.com> - 2011-10-18 16:19 +0200
    Re: I try to send e-mail for java but I get run time error sahm <sahm007@gmail.com> - 2011-10-19 05:47 -0700
    Re: I try to send e-mail for java but I get run time error Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 16:21 -0500
  Re: I try to send e-mail for java but I get run time error Roedy Green <see_website@mindprod.com.invalid> - 2011-10-19 15:28 -0700

csiph-web