cancel
Showing results for 
Search instead for 
Did you mean: 

External Library DC Project Problem

Former Member
0 Kudos

Hi All,

I am using NWDS 7.0.13.

I created an *External Library DC Project, and I cpoied one JAR File into the Libraries Project of this External Library DC Project. And I am able to see that JAR File under the External Library DC in Local DC's View. But when I am trying to create a Public Part in Local DC's view of External Library DC,I am not able to add this JAR File as a Public Part. I am getting only two options for the Select Entity Type(Folder, Folder Tree). But I am not getting any option to add the JAR File which is copied into the Libraries folder of External Library DC.

How can I add the JAR File to the External Library DC Public Part??????.

Is this the problem with my NWDS 7.0.13 Versuion????

(Note: I created the Exteranl Library DC, Java DC, WebDynpro DC, J2EE Server component of type Library DC in Local DC's under MyComponents only--I am doing in Local DC's view for Local test and then we want to do the same thing in NWDI).

Plz respond to my Problem ASAP.

Thanks in Advance||

Ashok..

Edited by: Armin Reichert on Feb 7, 2008 12:13 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member751941
Active Contributor
0 Kudos

Hi Ashok,

To add the jar files under libraries.

• Right Click on libraries.

• Select Import.

• An Import wizard will appear.

• Select Archive File.

• Click on Next.

• An Archive file wizard will appear.

• Browse zip file which contains .jars files from path C:.....

• Click on Finish.

To add the jar file under public part

First Select jar files under libraries then right click

Then Select Development Component  Add to public part

Go through this document.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/194bdc4f-0901-0010-82ba-bf73af5d...

Regards,

Mithu

Former Member
0 Kudos

Hi Ashok,

I've been using NetWeaver for a while and do not remember such functionality available.

I always modify PP file manually.

Create file named compilation.pp under def folder of your external library DC with the following content

<?xml version="1.0" encoding="UTF-8"?>

<public-part

xmlns="http://xml.sap.com/2002/11/PublicPart"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://xml.sap.com/2002/11/PublicPart ppdef.xsd"

version="1.0.4"

xmlns:IDX="urn:sap.com:PublicPart:1.0">

<name>compilation</name>

<purpose>compilation</purpose>

<entities>

<entity>

<name>bc.util.public_api.jar</name>

<package></package>

<caption>bc.util.public_api.jar</caption>

<description></description>

<entity-type>Archive</entity-type>

<entity-sub-type>Java Library</entity-sub-type>

</entity>

</entities>

</public-part>

Just substitute bc.util.public_api.jar with the name of your jar file.

Regards,

Andrei.

Former Member
0 Kudos

Hi,

You have to explicitly select the jar file!!!! Go to the libraries folder (in navigator view, or java package explorer), mark your jar file, context menu -> Development Component -> Add to public part. Don't try to use DC's meta data for extenal libs. Seems the libraries folder isn't included in the search path. Don't ask me why.

Regards,

Daniel

Former Member
0 Kudos

Hi Ashok,

if you are using Development component please try this..

1. Go to DC MetaData->Used DCs

2. Right click Used DCs and select 'Add Used DC'

3. In the dialog box expand SAP-JEE

4. Expand com.sap.security.api.sda

5. Go to DC MetaData->Public parts

6. Select 'default' under public parts and check the check box 'Run Time' at the bottom of the box.

7. Click finish.

Now try building your application.