cancel
Showing results for 
Search instead for 
Did you mean: 

packages needed for java mapping

Former Member
0 Kudos

Hi,

I have written a java mapping which is as follows:

import java.util.Map;

import javax.xml.parsers.DocumentBuilder;

import javax.xml.parsers.DocumentBuilderFactory;

import javax.xml.transform.OutputKeys;

import javax.xml.transform.Transformer;

import javax.xml.transform.TransformerFactory;

import javax.xml.transform.dom.DOMSource;

import javax.xml.transform.stream.StreamResult;

import org.w3c.dom.Document;

import org.w3c.dom.Node;

import org.w3c.dom.NodeList;

import com.sap.aii.mapping.api.StreamTransformation;

import com.sap.aii.mapping.api.StreamTransformationException;

public class JavaMappingDOM implements StreamTransformation {

public void setParameter(Map arg0) {

}.........

..............................

For this is need to import the com.sap.aii.mapping.api.*; package for it to compile with normal j2sdk from command prompt.

Can anyone provide me help where i can get it.And once it get it where should i place it in order to compile my java code to be imported into XI.Please give me detailed steps as iam new to this.

Thanks in advance,

Bhargav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhargav,

for the com.sap.aii.mapping.api.*; package you will have to import aii_map_api.jar in your class path......This jar file is in the following directory of your XI server:

<SAP_install_dir>/<system_name>/<instance_name>/j2ee/cluster/server<number>/apps/sap.com/com.sap.xi.services/

just copy-paste this jar file in your local system........include it in the class build path of your java project in which you have created your this java mapping......then your this mapping will compile.

Thanks,

Rajeev Gupta

Message was edited by:

RAJEEV GUPTA

Former Member
0 Kudos

Hey Rajeev,

I have written the code in a textpad and im compiling it from the command prompt using j2sdk.Than where should i put .jar file and how to set the class path can u please give a detailed list of the steps as im a new to this.

Thanks,

Bhargav

Former Member
0 Kudos

Hi Bhargav,

just take that jar file and save it in some directory of your local system.......then you have to add this jar file folder path to the CLASSPATH environment variable.. for this go through the below link:

http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html

follow the steps which are given......then from command prompt you can compile your this java mapping program.

Thanks,

Rajeev Gupta

Answers (0)