Thursday, April 18, 2013

What is SAP JCo and where can i get it ?


Setting up a SAP connection

This section describes how to set up a SAP connection, if you plan to develop mobile applications using the SAP framework.
To set up the SAP connection you must:
·  Configure the SAP connection using the SAP Java Connector (SAP JCo). SAP JCo is a toolkit that allows a Java application to communicate with any SAP system. The SAP Java Connector can be downloaded from the SAP Service Marketplace Web site by a registered SAP customer.

Configuring the SAP Java connector
1.     Open a Web browser window and enter the SAP Marketplace URL, which currently is:
2.  https://websmp204.sap-ag.de/swdc or  http://service.sap.com/connectors --> SAP Java Connector
The Client Authentication window displays.
3.     Select the certificate to use when connecting, and click OK. The Enter Network Password window displays.
4.     Enter your registered SAP customer user name and password in the User Name and Password fields, and click OK. The SAP Software Distribution Center window displays.
5.     In the You Are Here navigation bar on the left side of the page, navigate to Download | SAP Connectors | SAP Java Connector | Tools and Services. Click the link for SAP JCo Release 3.0.X to download the SAP Java Connector.
6.     Follow the installation instructions provided by SAP. When prompted, copy the .jar and .dll files to these locations:

Configuring the SAP environment for Eclipse Studio

To configure SAP Environment for IDE   Copy the following files from the SAP installation and place them in <JDK_Installation_Path>/jre/ lib/ext folder:
  1. sapjco3.dll
    sapjco3.jar
    Note: If you have a Windows OS, copy the sapjco3.dll file. If you have a Linux or Unix environment, copy the sapjco3.so file.

  2. Modify the config.ini file and add the following line at the end of the file:
    osgi.parentClassloader=ext
    This file is available at <Eclipse_Installation_Path>/configuration.

      Incase of Mac OS, keep sapjco3.dll and libsapjco3.jnilib files in the java/extensions folder.
  1.     Restart Eclipse. 



1 comment:

  1. Trying to run an example Java server using the JCo library. Any pointers on how to set it up in Eclipse?

    ReplyDelete