Skip to Content
avatar image
Former Member

Use external libraries in web dynpro java

Dear Experts,

I need to add an external library to my project.

Anyway, I do not know how to do it because it gives me many problems.

I tried modifying the classpath and placing it in the lib folder of the project from "Navigator".

Also project properties, add. jar outside, and throws me the following error:

[javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes

[javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\ package com.estaf does not exist

[javac] ERROR: import com.estaf.jpay;

[javac] ERROR:

Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.

I read the following link:


I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.

A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.

I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.

Infinitely appreciate any help. Thank you very much.


Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM

Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 12, 2011 at 06:10 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Govindu,

      But I already did what you said that.. NWDS 7.2 does not allow on Java Build path->select libraries->select External External Jars. it is for NWDS 7.0.




  • Apr 12, 2011 at 08:15 AM


    It appears as if your external lib DC is not built yet... have you also build it from the Development Component context menu?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Rasim,

      As I don't have NWDS 7.2 at hand here, I have to do it by heart, but if I remember correctly, from your J2EE DC Explorer view, don't you have a context menu 'Development Component > Build' or something similar?

      On a sidenote, can you check if the reference is made in your project's 'application-j2ee-engine.xml' file? There should be a tag like <reference-target> referencing the deployed EAR file

  • Apr 12, 2011 at 01:12 PM have to create ear dc,which depends on the assembly pp of the lib dc, to deploy the lib dc.

    2. your dc has to add runtime dependency to the ear dc.

    Add comment
    10|10000 characters needed characters exceeded