Show TOC

Importing and Referencing the API LibraryLocate this document in the navigation structure

Use

This procedure differs depending on whether or not you are using the SAP NetWeaver Development Infrastructure (NWDI).

Procedure
  • If you are using NWDI, import the library from the System Landscape Directory (SLD) into the development configuration.

  • If you are not using NWDI, deploy the library locally and set the references as follows:

    1. Extract the JAR files from the SPACES-API.SCA file to a local folder of your choice.

    2. In the Preferences dialog of NWDS, choose Start of the navigation path Java Next navigation step Build Path Next navigation step Classpath Variables End of the navigation path and create a new variable with the path set to the folder in which you have saved the JAR files.

    3. In the Properties dialog of your Java project, choose Start of the navigation path Java Build Path Next navigation step Libraries End of the navigation path, select the tc~workspaces~api_api.jar file that contains the API, choose Add External JAR, and then OK.

Note

Regardless of the way you have deployed the library, you need to add a private sharing reference to tc~workspaces~api in your project's portalapp.xml:

<application-config>

<property name="PrivateSharingReference" value="tc~workspaces~api" />

</application-config>