cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError

Former Member
0 Kudos

Hi all,

I created a web dynpro DC say PublicDC. In the src/package/utils folder I created a java class.

Now, I created another web dynpro DC say MainDC and from this DC I want to access the java class from PublicDC.

For that,

1. I created a public part(compile) in PublicDC and added the utils folder and the java class.

2. I also created another public part(assembly) in publicDC and added the same entities.

3. Now in the MainDc, I added these two public parts in the Used DC section both for build and runtime with strong qualifier.

From the init() method of the component controller of MainDC, when I try to access the Java class at runtime it throws java.lang.NoClassDefFoundError.

Can anybody tell me how to fix this?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you so much. It worked

Greg_Austin
Active Participant
0 Kudos

You have to add a sharing reference in the MainDC project to the PublicDC project. Right click on the project->properties->Web DynPro Reference->Sharing Reference tab. Add something like test.com/DCName. I'm sure there are several posts on SDN about sharing references.

Hope this helps.