cancel
Showing results for 
Search instead for 
Did you mean: 

java error at source code

Former Member
0 Kudos

I am getting an error over here when I write this statement:

Session session = Session.getDefaultInstance(props, null);

MimeMessage message = new MimeMessage(session);

I am trying to add the package javax.mail.* but is not allowin me to import this package in my source code.

I am working on NWDS 7.0.11

Can some body help me plz

thanx in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

nikhil_bose
Active Contributor
0 Kudos

Session session = Session.getDefaultInstance(props, null);

try Session.getInstance( props, null) instread.

I am trying to add the package javax.mail.* but is not allowin me to import this package in my source code.

copy mail.jar file to <your project>/lib folder and add this jar to java build path.

nikhil

Former Member
0 Kudos

Thanx for ur answer

But where do I find this mail.jar file ??

Plz reply soon

Former Member
0 Kudos

Hi,

You can download from http://java.sun.com/products/javamail/

Try searching in the installation folder of your WAS

Regards

Ayyapparaj