cancel
Showing results for 
Search instead for 
Did you mean: 

how to import a jar to development component

Former Member
0 Kudos

Can you please help, how can we import a jar in development component

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member185086
Active Contributor
0 Kudos

Hi

External Jar and External Library DC

An External Library DC in Development is just like a Java DC (except that you don't have sources or do not want to compile them): It's a simple building block that is used during build. Maybe it has a specific "API" subset (in which case you could publish different Jar files in compilation/assembly public parts) or it hasn't (in which case the jars in compilation/assembly public parts would be identical). Anyway, public parts are relevant for build.

1.Create a external library Dc Select your External library Dc-Under library folder put your jar files ---now select a that jar and right click --under development component --here u will find two option Publish as file and publish as archive select that and define Public Part for both compilation as well as assembly.

2 Build this Dc (No need to compile )

3.Define the uses relation-ship with your Component.

4.Build both the dc again

5.Compile and run your Component that used the external library Dc only.

6. In this way Run time will find the physical reference of the used class

Best Regards'

Satish Kumar

Former Member
0 Kudos

Neha,

check these links

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

/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas

http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm

Thanks

Bala Duvvuri

Former Member
0 Kudos

hi,

you could just

1. create a project from the dc (inactive DC's) ,

2. create a new activity.

3. add the jar file in the "project properties-> java buidl path-> libraries -> add external jar's",

4. checkin the activity.

this should add the jar file to the DC succesfully.

Hope this helps,

Prabu J.

Former Member
0 Kudos

Use an External Library DC.