Skip to Content
0
Former Member
Jan 23, 2009 at 12:14 PM

Adding External Jar in a Webdynpro Dc

89 Views

HI All,

I have used java mail API in my Webdynpro(CE7.1)DC. For that , iadded two external jars.

I have added the jars in the build path of the project. The application is running fine .When i do a DC Build the build fails. The Log i get is

java:22: package javax.mail does not exist

[javac] ERROR: import javax.mail.BodyPart;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:23: package javax.mail does not exist

[javac] ERROR: import javax.mail.MessagingException;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:24: package javax.mail does not exist

[javac] ERROR: import javax.mail.SendFailedException;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:25: package javax.mail does not exist

[javac] ERROR: import javax.mail.Session;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:26: package javax.mail.internet does not exist

[javac] ERROR: import javax.mail.internet.AddressException;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:27: package javax.mail.internet does not exist

[javac] ERROR: import javax.mail.internet.InternetAddress;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:28: package javax.mail.internet does not exist

[javac] ERROR: import javax.mail.internet.MimeBodyPart;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:29: package javax.mail.internet does not exist

[javac] ERROR: import javax.mail.internet.MimeMessage;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:30: package javax.mail.internet does not exist

[javac] ERROR: import javax.mail.internet.MimeMultipart;

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:219: cannot find symbol

[javac] ERROR: symbol : class Session

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: Session session = Session.getDefaultInstance(properties,null);

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:219: cannot find symbol

[javac] ERROR: symbol : variable Session

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: Session session = Session.getDefaultInstance(properties,null);

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:222: cannot find symbol

[javac] ERROR: symbol : class MimeMessage

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: MimeMessage message = new MimeMessage(session);

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:222: cannot find symbol

[javac] ERROR: symbol : class MimeMessage

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: MimeMessage message = new MimeMessage(session);

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:223: cannot find symbol

[javac] ERROR: symbol : class InternetAddress

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: InternetAddress fromAddress = new InternetAddress();

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:223: cannot find symbol

[javac] ERROR: symbol : class InternetAddress

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: InternetAddress fromAddress = new InternetAddress();

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:224: cannot find symbol

[javac] ERROR: symbol : class InternetAddress

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: InternetAddress toAddress = new InternetAddress();

[javac] ERROR: ^

[javac] ERROR: E:\itpo_backUpworkspace2.jdi\LocalDevelopment\t\14C13E6A69D51EC3120D8140CB9B1F69\gen_wdp\packages\com\sap\demo\emaildclatest\emailapplication\comp\EmailApplicationCompView.java:224: cannot find symbol

[javac] ERROR: symbol : class InternetAddress

[javac] ERROR: location: class com.sap.demo.emaildclatest.emailapplication.comp.EmailApplicationCompView

[javac] ERROR: InternetAddress toAddress = new InternetAddress();

After going through many blogs and threads, i added the jars in a Enterprise portal project . Created public parts of type assembly and compilation .and added the public parts to A EAR and deployed on the server.and then added this EAR in my WEbdynpro project . I stil lget the same error.. What am i missing out.

Thanks in Advance,

Regards,

Divya