Posted By:
eduardo_saucedo
Posted On:
Tuesday, July 29, 2008 11:29 AM
Dear jGuru , I am a newbie using Java. I do must of my number crunching programming in APL but I am working now on an application, to be used in several places that require limiting access to only your own data. I figure out that the best way was to provide for a password, to be emailed by the application to the first time users, provided that the user is in the accepted database, to his/her email address. The application worked fine, after some struggle (including sending the e-mails) in my desktop, but when I moved to my portable for testing, I am not able to sen
More>>
Dear
jGuru
,
I am a newbie using Java.
I do must of my number crunching programming in APL but I am working now
on an application, to be used in several places that require limiting access to
only your own data.
I figure out that
the best way was to provide for a password, to be emailed by the application to
the first time users, provided that the user is in the accepted database, to
his/her email address.
The application worked fine, after some struggle (including
sending the e-mails) in my desktop, but when I moved to my portable for
testing, I am not able to send e-mails.
I
am running it on a Windows XP environment.
The e-mail program is a quick adaptation of
class=SpellE>sendmail
provided by
Javamail
as
a sample.
It requires including the following
libraries:
import
java.util
.*;
import
java.io
.*;
import
javax.mail
.*;
import
javax.mail.internet
.*;
import
javax.activation
.*
I have created a lib on the portable containing all the
files in the JDK library plus the activation jar of
javamail
.
style='mso-spacerun:yes'>
The contents of the library are:
Tools.jar
Activation.jar
Ct.sym
Dsb.jar
Dt.jar
Htmlconverter.jar
Imap.har
Ir.jar
Jawt.lib
Jconsole.jar
Jvm.lib
Mailapi.jar
Orb.idl
Pop3.jar
Smtp.jar
After some fudging with the path and CLASSPATH, the program starts
loading but stops providing the following message:
Exception in thread main
java.lang.NoClassDefFoundError
:
javax
/mail /
messagingException
.
Java started loading the program and attached the first two libraries
in the list but can not find the third one.
As a matter of fact, nor can I.
style='mso-spacerun:yes'>
I did a thorough search of the hard disk on
my desk top looking for
javax
*.* and I was able to
find a couple of empty directories and the few directories that contain files,
the files were only *.html files.
I presume that the fix is a trivial one, but I have not been
able how to do it.
Help will be
appreciated.
Eduardo
p.s. I hope the format is acceptable?