cancel
Showing results for 
Search instead for 
Did you mean: 

External library removed when DC build

Former Member
0 Kudos

Using dev studio version 2.0.21 Code with IUser class:

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user = null;

if (wdUser != null) {

user = wdUser.getSAPUser();

}

Add the jar file to the project build for IUser, click organize imports and it adds:

import com.sap.security.api.IUser;

and everything looks good. From context menu Development Component -> Build and I get error:

... package com.sap.security.api does not exist

Check the build path and the jar file keeps disappearing. Anyone seen this before?

Accepted Solutions (1)

Accepted Solutions (1)

i827647
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you are using NWDI, you can add used DC. Expand DC MetaData -> DC Definition. Right click in Used DC and Add Used DC. Then you find into com.sap_SAP-JEE a pakage com.sap.security.api.sda and press finish.

Regards,

Edson Thomaz

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks - that fixed it.

Former Member
0 Kudos

Mike,

Add the com.sap.security.api.sda file to the Used Dcs under DC Metadata --> DC Definition. You can find this archive file under Active DCs -->sap.com_SAP_JEE.

Kiran