cancel
Showing results for 
Search instead for 
Did you mean: 

External Library - NoClassDefFoundError

Former Member
0 Kudos

Hi,

We are building a WebDynpro application with an external library called "XYZ.jar". The compile moment is OK, the problem occurs at Runtime, when I try the command " ... = new XYZ()", the message " java.lang.NoClassDefFoundError " .

Important to say that I tested the library by "public static void main ..." and it worked.

Any help for my case?

Thanks in advance.

Edited by: Alexandre Jantsch on May 12, 2011 11:26 PM

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

did you follow any doc regarding how to use external lib? if not, please find some in sdn.

you have to wrap the lib in a ear project. your web dynpro has to add runtime dependency to the ear project.

Answers (3)

Answers (3)

Former Member
0 Kudos

All suggestions helped. Follow them.

Former Member
0 Kudos

This message was moderated.

p330068
Active Contributor
0 Kudos

Hi Alexandre,

Please check the external library DC is build successfully or not. then check the DC where you have used the external library DC. Also check the DC properties >> library whether used DC is added or not.

Please try to do the sync and sync used Dc and then test it.

Best Regards

Arun Jaiswal