Skip to Content

WebDynPro JAva New Variable Classpath entry

I am new to Webdynpro java and new to NWDI,

When I created webdynpro projects locally before NWDI, the projects had all the required class path variable for the wd_RUNTIME. I am nowcreating DC project type WebdynPro and every project when created has classpath variable problems. I know I can add them one by one to every project thru" project properties >Libraries > Add variable --> WD_RUNTIME --> extend" but that is time consuming. Is there a way to add default class path variables that all projects in that track will be built with. I have also done "Organize Imports" and nothing gets imported to resolve errors

These imports are not being brought into the project

import com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape;

import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;

import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;

import com.sap.tc.webdynpro.services.session.api.IWDWindow

An example of a basic class path variable missing from wd_RUNTIME is

com.sap.tc.webdynpro.runtime_2_0.0

Any Help on this matter would be very much appreciated.

thank you,

sarah

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 07, 2009 at 09:20 AM

    Hi sarah

    >I know I can add them one by one to every project thru" project properties >Libraries> Add variable --> WD_RUNTIME --> extend" but that is time consuming

    This is not a proper way in SAP NWDS. If you create WebDynpro DC then all the necessary references must be there already. You do not need to add them manually.

    1. Check Used DC section in DC Definition to ensure that all standard WebDynpro component usages are included.

    2. Try to Build DC

    3. If it's built successfully try to Rebuild Project or Reload+Rebuild. This will update Eclipse's classpath and all the error messages shall disappear from Eclipse.

    >Is there a way to add default class path variables that all projects in that track will be built with.

    This is not necessary in your case.

    BR, Siarhei

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 08, 2009 at 05:06 PM

    Thank you,

    BR, Siarhei

    I was able to add an additional dependency to the WD TRack in NWDI that was missing. It was EP_BUILDT. That solved the standard WD errors I was getting.

    When I want to use the following commands

    IUser u = wduser.getSAPUser();

    What is the way to get my imports such as the following into the WebDynpro NWDI track for all project?

    import com.sap.security.api.IUser;

    import com.sap.security.api.IUserAccount;

    Thank you for your time an help,

    Sarah

    Is there a way to add default class path variables that all projects in that track will be built with.This is not necessary in your case.

    BR, Siarhei

    Add comment
    10|10000 characters needed characters exceeded