Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Add external jar (barcode4j.jar) to Develeopment Component

Hi,

I have read the threat and blog about the topic. I have the same problem...

I get the error NoClassDefFoundError.

I can't add the public part from the DC Component XXX to the J2ee Server Component Library.

In the blog is discription that I should go to J2EE Explorer Perspectiv and open the structure DC Metadata

-> DC Definition - > Useds DCs

But this folder structure doesn't exist in my J2ee Server Component Library? How cann I add the public part to my J2ee Server Component Library?

It is possible to use external .jars without a J2ee Server Component Library?

Blog:

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Thread:

Create empty Table for input

Error:

java.lang.NoClassDefFoundError: org/krysalis/barcode4j/impl/AbstractBarcodeBean

....

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.xxx.BarcodeView.

(Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

Former Member
Former Member replied

Hi SAP User,

I think you have created a local J2EE Server Component.

<b>Create a J2EE Server Component DC Library.

1> Choose File=>New=>Project

2> Select Development Component=>Development Component Project

3> Choose Next

4> Select Local Development =>My Components

5> Click on Next. Enter Details

6> Choose Library under (J2EE Server Component under sap.com domain)

7> Click on Next and Finish.

Once DC Library is created you will get DC MetaData.

Under DC MetaData=>DC Definition=>Used DCs add Used DCs...

In Add Used DCs.. Add the type compilation and type assembly that you have already created that contains your jar files.

Then build and deploy. Your jar file will be deployed in your server you will not get NoClassDefFoundError.</b>

Adding Jar files to a DC

Regards,

Mithu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question