cancel
Showing results for 
Search instead for 
Did you mean: 

Complilation error when trying to access the current user

Former Member
0 Kudos

I try to get the current user of my WD application using the following piece of code:

IWDClientUser user;

user = WDClientUser.getCurrentUser();

String strUser = user.getSAPUser().getUniqueName

But I get the following compilation error :

Error			This compilation unit indirectly references the missing type com.sap.security.api.IUser (typically some required class file is referencing a type outside the classpath)	ResultView.java	Wd_ex1/gen_wdp/packages/com/tsi/wd/ex1	line 0

Can anybody tell me how and which libraries to put in the classpath?

regards,

Bhupesh

Accepted Solutions (1)

Accepted Solutions (1)

achim_hauck2
Active Contributor
0 Kudos

you have to put the following file to your classpath in NWDS:

<location of your NWDS>\plugins\com.sap.secutity\lib\com.sap.security.api.jar

kr, achim

Answers (1)

Answers (1)

Former Member
0 Kudos

Go to project properties -> java build path-> libreries-> ad variable

select wd runtime

click on extend

and select

com.sap.security/lib/com.sap.security.api.jar

Former Member
0 Kudos

thanx vedran,full points to you.

regards,

bhupesh

Former Member
0 Kudos

but I didn't get points

Former Member
0 Kudos

Are u sure.I clicked on 'Solved Problem ' button.That's how one awards the points,right?

regards,

Bhupesh

Former Member
0 Kudos

I think you give points to Achim, look at stars

Former Member
0 Kudos

Thank you very much ))

Former Member
0 Kudos

Well, I never saw Achim's reply in THIS question.Sometime SDN forum works strangely.When I awarded the points,I can swear that I gave the points to u.Do not know what happened.

Anyway,I have tried to make amends and awarded some points to u as well.

thanx a lot.

Bhupesh