cancel
Showing results for 
Search instead for 
Did you mean: 

Missing jar files on NW Developer Studio

Former Member
0 Kudos

Hello,

I am trying to import the example of KMC from this link:

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/developing a search component for km search iview.article

The example is using these APIs:

com.sapportals.wcm.control.util.search.*

com.sapportals.wcm.service.indexmanagement.*

The problem is that I cant find these packages at the NW Developer Studio. Can someone help me locate it please?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roy,

Thilo Brandt has written an excellent article about Java development in the KM, it can be found here;

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/java development with the kmc platform.pdf

It was Thilo who wrote the article that you are working with right now.

The article I've pointed you to shows that you must go portal server side to get the required libraries.

Go to your portal installation and copy (to your client) all library folders with the names:

com.sap.km.*

com.sap.netweaver.bc.*

com.sap.netweaver.coll.*

that'll give you all the KM libraries locally.

Page 28 of the article I mentioned shows this with a nice picture.

I hope it helps.

Patrick.

Former Member
0 Kudos

Patrik:

Thank you very much, that indeed solved the problem!

Amey-Mogare
Contributor
0 Kudos

Hi Roy,

I am too implementing same example and I need JARs following classes :-

com.sapportals.wcm.service.indexmanagement

com.sapportals.wcm.control.released.search

com.sapportals.wcm.service.indexmanagement.retrieval.search

I have copied entire portalapps folder to my local machine.

Can you please tell me where exactly JARs for above classes is located? Here there are numerous folder and sub-folders?

Thanks and regards,

Amey Mogare

Answers (2)

Answers (2)

daniel_davinci
Active Contributor
0 Kudos

Hi Roy,

Get a copy of this plugin:

http://sf.gds.tuwien.ac.at/00-cat/loc/classlocator/

It is an <i>extreemly</i> useful tool to have.

Hope it helps.

Cheers

Daniel

Former Member
0 Kudos

have you tried looking in this folder

C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.km.rfwizard\lib

I am sorry it's not there but i have found the jars that have it.

km.shared.ui.util_api.jar and km.shared.service.indexmanagement_api.jar

email me at singhpra@hotmail.com. I will send it to you. thank you.

Message was edited by: Prakash Singh

Message was edited by: Prakash Singh

Former Member
0 Kudos

Prakash: I am not in front of my NW now but I will search the path that you gave me and inform you.

Daniel: What does this plugin use for? Do I need it if I use NWDS as well?

daniel_davinci
Active Contributor
0 Kudos

Hi Roy,

This is a class locator. Its not required but it indexes all your jar files so when you need to find a jar all you need to do in NWDS is right click on the required import (Found by looking at the properties of a package error in NWDS) then select locate. It then looks up where the jar file for the import might be, you choose the one you want and it adds the jar to the build path and resolves the compile problem reported.

Saves you a lot of time locating jar files...

Give it a go, you won't look back.

Cheers

Daniel

Former Member
0 Kudos

Sounds cool! Any special installation instructions or simply put the extracted folder at the "plugins" folder?

daniel_davinci
Active Contributor
0 Kudos

No special install. Its simply a plugin, so just extract to plugins the first time you run it i think that it asks for directories to index, once thats complete you simply and run it when required.

Cheers

Daniel

Former Member
0 Kudos

Prakash: I can't find the jars there, I have the lib but I don't have the jars you specified.

Dainel: I've placed it at the plugins folder, I have now an option to Locate classes but it doesn't show anything on any class I am entering. Are you sure this plugin works with NWDS?

Amey-Mogare
Contributor
0 Kudos

Hi Prakash,

I am too implementing same example and I need JARs following classes :-

com.sapportals.wcm.service.indexmanagement

com.sapportals.wcm.control.released.search

com.sapportals.wcm.service.indexmanagement.retrieval.search

I have copied entire portalapps folder to my local machine.

Can you please tell me where exactly JARs for above classes is located? Here there are numerous folder and sub-folders?

Thanks and regards,

Amey Mogare