WebSphere Adapter for SAP Software

Adding external dependencies

To add the required external dependency files, you copy the files, including the sapjco.jar file, to directories within the WebSphere® Integration Developer directory. You then add the sapjco.jar file to the adapter project you created.

  1. If you have not already done so as part of the installation of the adapter or as part of running another tutorial, copy the required files as outlined in the following steps.
    1. Obtain the files for your operating system from your SAP administrator or from the SAP Web site.
      Table 1. Files to be installed
      Operating system Files to be installed
      Windows® Any *.dll files that come with the SAP Jco download from the SAP Web site
      Unix (including Unix System Services on z/OS ) Any .so and .o files that come with the SAP Jco download from the SAP Web site
    2. Copy the files to the following locations in the WebSphere Integration Developer installation directory:
      • \runtimes\bi_v6\java\bin
      • \eclipse\jre\bin

      For z/OS®, add the files to the ${WAS_INSTALL_ROOT}/lib directory.

    3. For Windows environments only, obtain the msvcp71.dll and msvcr71.dll files from your SAP administrator or the SAP Web site.
    4. For Windows environments only, install the msvcp71.dll and msvcr71.dll files in the Windows system path.
    5. Obtain the sapjco.jar file from your SAP administrator or the SAP Web site.
    6. Copy sapjco.jar to the following location in the WebSphere Integration Developer installation directory: \runtimes\bi_v6\lib

      For z/OS, add ${WAS_INSTALL_ROOT}/lib/sapjco.jar to WAS_SERVER_ONLY_server_region_classpath

  2. Import the sapjco.jar file into the adapter project.
    1. In the J2EE perspective of WebSphere Integration Developer, expand Connector Projects.
    2. Right-click CWYAP_SAPAdapter and click Properties.
      Figure 1. The CWYAP_SAPAdapter project, displayed in the Project Explorer
      A screen capture of the contents of the adapter project.
    3. In the left side of the Properties for CWYAP_SAPAdapter window, click Java Build Path.
      Figure 2. Selecting Java Build Path
      This screen capture is described in the surrounding text.
    4. Click the Libraries tab, and click Add External JARs.
    5. Navigate to the directory on your local file system where the sapjco.jar file is located. Then select sapjco.jar and click Open.
      Figure 3. The JAR Selection window, with the sapjco.jar file highlighted for selection
      A screen capture of the JAR Selection window, with the sapjco.jar file highlighted for selection.
    6. Click OK.

      The file sapjco.jar appears in the list of JARs and class folders in the build path.

Result

The sapjco.jar file is now part of your connector project and appears in the Project Explorer window of WebSphere Integration Developer.
Figure 4. The Project Explorer window of WebSphere Integration Developer
The sapjco.jar file, displayed under the CWYAP_SAPAdapter.jar product in the Project Explorer

Terms of use |

Last updated: Mon 30 Oct 2006 03:34:54

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)