cancel
Showing results for 
Search instead for 
Did you mean: 

Libraries attachments on NetWeaver

Former Member
0 Kudos

Hi all,

We are having some problems with external libraries in our J2EE/WebDynpro applications developed with SAP NetWeaver Developer Studio v. 2.0.7. environment when we work with DC projects (DataComponent). With non DC projects we are not having any problems.

We have made some DC projects (WebDynpro, java or EJB Module) and when we add an external library in the project properties, the library is missing when we choose the Build DC option. Only libraries linked with Used DC’s option are saved.

We tried to make a J2EE Server Component - DC Library but this projects can’t add external libraries in the same way we generate .sda file from a normal Library project.

We tries too to deploy a normal file library (.sda) and attach it. But we didn’t find the option to include this kind of libraries in a DC Project as a reference (in non DC Web or EJB projects that option is included).

Can you suggest us what is the best practice to attach a external library with DC projects in SAP NetWeaver Developper Studio?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ruben,

Refer to the following thread

Hope this thread will be useful for you.

Regards,

Santhosh.C

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ruben,

Do one thing.

If your DC is webdynpro application, then follow the steps:

1. Go to navigator tab.

2. right click on your DC project.

3. expand this node and choose lib folder.

4. right click on it and choose import.

5. choose file system as option.

6. Now here choose your required external JAR files and click ok. It will import external JAR files into your Lib folder.

7. Now from webdynpro perspective, right click on your project and go for properties.

8. There choose java build path-> libraries.

9. press button Add JARs and choose all JARs under your webdynpro DC project node.

Doing this, you need not to add jars through Add external JARs procedure. And at the building time it will add all these external jars into your .sda or .ear file.

Let me know the status,

If its really helpful then don't forget to give reward points.

Regards,

Bhavik

Former Member
0 Kudos

Hi Ruben

To attach external jars, use a DC which contains all your libraries. I mean extract all your libraries into src/packages folder of your DC and expose them as public part (Java package tree). Use this DC in other DCs.

Kishore