cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundException fires when try to use java classes in other comps

Former Member
0 Kudos

Hi all,

I'd like to solve this senario:

I hava a utility component which can be used by other components, if there are methods public in interface controller, these methods can be called properly, this is ok.

But meanwhile I have several other java classes which I want to use in other components, here comes the problem, if I put these java package into api public part, these classes can be compiled in other component, BUT once I run the consumer component, NoClassDefFoundException fired, I don't if it is posible to use class in this way, how to solve this problem.

You may wonder why I do not use an exteral library to work around, because first I want to edit these class in real time(not always package) and more important these class will use webdynpro enviroment.

Give me some hints, thank you.

Best Regards,

William

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I can not believe I solve this problem so quick,

All these error happened because I skip one important step, add sharing reference in webdynpro reference

Hope this can help for newbie.