cancel
Showing results for 
Search instead for 
Did you mean: 

import statement not working

Former Member
0 Kudos

Hi

I have written bellow code

	try
	{
 
		IWDClientUser wdUser = null;
		try
		{
			wdUser = WDClientUser.getCurrentUser();
		}
		catch (WDUMException e1)
		{
			e1.printStackTrace();
		}
		IUser user = wdUser.getSAPUser();
		logonID = user.getUniqueName();
		wdContext.currentParametersElement().setZuser(logonID);
		wdContext.currentContextElement().setTEST(logonID);
	}
	catch (Exception e)
	{
		msgMgr.reportException("Error: " + e.getMessage(), true);
		e.printStackTrace();
	}

and written import statement

import com.sap.security.api.IUser;

to import IUser but it don't import the class and gives error class defination not found

so please tell me what should i do to import that class

Thanks

Ninad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ninad

Please add the following jar files to your WD project to see if the error goes away.

logging

com.sap.portal.usermanagementapi

com.sap.security.api

saaj-api

Add these jar files as external jar files to your project.

Former Member
0 Kudos

Hi Girish

can you tell me how to add it i am new to web dynpro so don't know how to add jar as external jar files to projct

Thanks

Ninad

former_member182374
Active Contributor
0 Kudos

Hi Ninad,

Right click on project name

-> Properties

--> Java build path

---> Add external JARs

Navigate to the files and add them

Omri

Former Member
0 Kudos

Hi

Yes but where are the jar files for that IUser

Thanks

Ninad

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Ninad,

Right click WD project->add external jars

Path is like: C/usr/sap/j2e/jco1/j2ee/cluster/server/bin/ext/com.security/api.sda

Regards

Suresh KB

Former Member
0 Kudos

Hi Ninad,

First check this file is exsist o not in your system in the following path. Otherwise search it.

C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.security\lib\com.sap.security.api.jar.

Than add to your project's library path.

Kind Regards,

S.Saravanan.

Answers (2)

Answers (2)

Former Member
0 Kudos

Ninad

Have mailed you the files.

Please award appropriate points if this gives you a solution

Former Member
0 Kudos

Ninad

I can mail you the jar files if you give me your email id

Former Member
0 Kudos

Hi Girish

Thanks a lot for your co-operation my mail id ninad.kalamkar@t-systems.com

Thanks

Ninad