Skip to Content
avatar image
Former Member

Jar files to add to the classpath for KM development.

Hello Friends:

I am trying to retrieve the favorites of the user stored

under him home folder. In KM we have a readymade iview,

called 'Favorites'. I am programmatically trying to

read the values stored by this iview.

I am using NWDS 2.0.5 on EP60SP2Patch3. When I use the

following code,

IUserManagementService umService =

(IUserManagementService) request.getService(IUserManagementService.KEY);

// get the user object

IUser user =

umService.getDefaultFactory().getUser(userId);

IResourceContext context = new ResourceContext(user);

in my IDE I get the following error:

"This compilation unit indirectly references a missing

type com.sapportals.portal.security.usermanagement.

IUserFactory"

The following are the jar files added to my project's

classpath.

com.sap.portal.usermanagementapi.jar

com.sap.portal.usermanagementcore.jar

com.sap.portal.usermappingapi.jar

com.sap.security.api.jar

com.sap.security.api.perm.jar

com.sap.security.core.jar

com.sap.security.core.tpd.jar

apart from the usual portal framework related jar files.

I tried also to add all the jar files with the prefix like...

com.sap.km.*

com.sap.netweaver.bc.*

It didn't help.

What are the other jar files I need to add, and where

they are available.

BTW, I unzipped all the 'portallibs' downloaded from the

portal and using those jar files to attach to the project.

Thank you very much,

Prasad Nutalapati

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Aug 25, 2004 at 08:18 AM

    Hi Prasad,

    additionally you need com.sap.security.api.ep5.jar due to the fact that KM is using the old EP5 usermanagement libraries.

    Concerning the KM / RF libraries I would recommand to include all libraries matching the patterns bc._api.jar and km._api.jar

    Best regards,

    Thilo

    Add comment
    10|10000 characters needed characters exceeded