Referencing JAR Files

Procedure

  1. Download the KMC CONTENT MANAGEMENT software component archives (SCA) from the SAP Service MarketplaceInformation published on SAP site. To do this:
    • Go to Start of the navigation pathSupport Portal Next navigation step Software Downloads Next navigation step Support Packages and Patches Next navigation step Browse Our Download Catalog Next navigation step SAP NetWeaver and complementary products Next navigation step SAP NetWeaverEnd of the navigation path
    • Choose the relevant release of SAP NetWeaver and under the Enterprise Portal component find KMC CONTENT MANAGEMENT SCA files.
  2. Import the downloaded KMC CONTENT MANAGEMENT SCA files in your SAP NetWeaver Developer Studio. For more information, see: Importing and Updating Software Components
  3. Identify all the JAR files you need to reference in your project. If you use a particular Knowledge Management class or interface, you can identify the corresponding JAR file in the Javadocs. The Javadocs specify the name of the JAR file that each interface or class belongs to.

    For Knowledge Management (KM), you need to reference:

    • tc~km~frwk.jar file

    • Additional portal JAR files if you use portal classes or interfaces

    You can find the tc~km~frwk.jar file in the following folder in the initially set by you system drive and workspace: LocalDevelopment\KMC-CM\sap.com\tc\km\frwk\_comp\gen\default\public\api\lib\java.

  4. Copy all the JARs that you need for the project from the portal for deployment to the workspace of your project. To do this:

    1. Create a folder in your project workspace with Start of the navigation pathFile Next navigation step New folderEnd of the navigation path.

    2. Copy the following KM JAR file to the folder: tc~km~frwk.jar .

    3. If required, copy further portal JAR files to the folder.

  5. Add the JAR files you need for your project to the Java build path of your project. To do this, choose Start of the navigation pathProject Next navigation step PropertiesEnd of the navigation path and then select Java Build Path and choose Add Jars .