cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping Library

Former Member
0 Kudos

Hi,

In order to work with Java Mapping, I need to import <b>com.sap.aii.mapping.api</b> library, right.

Can anybody suggest me the exact location where should I place that library in java folder in local drive.

Thanks in advance.

Regards

Krishna.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Krisna

<b>Why not u given 10 points. U dissapoint me.</b>

Former Member
0 Kudos

Hi Krisna

Do the below steps

as for example

Step> Our java file in D:\Test\JamaMapping.java

>place aii_map_api.jar in D:\Test

>command >go>d:\test directory>run command like>javac -classpath aii_map_api.jar JavaMapping.java

>make jar>by command>jar -cvf javamap.jar *.class

>export javamap.jar

<b>

***Reward points if helpfull</b>

Former Member
0 Kudos

HI Krishna

First of add all jars required in ur eclipse/NWDS

Windows -->Preferences menu, and in the left navigation

pane, select the Java -->Build Path

Thanks

Abhishek

Former Member
0 Kudos

Hi Abhishek/Ramesh,

I've already worked on java mapping with eclipse by adding external library to it.

But I want to know how to resolve if I don't use any editor.

In case If I write java program in notepad, then how can I refer to the library. Do I need to place that libray at any specific place in order to import it?

Please try to answer me.

Regards

Krishna.

Former Member
0 Kudos

Hi Krishna

Just try to add the following jar in the jar folder of ur JDK installed or the classpath folder which u have given. When u will run the java command in ur cmd prompt it will automatically load the jar.

The solution is that u add this api to your classpath folder

In my case my calsspath folder is (C:\j2sdk\lib)

Thanks

Abhishek Mahajan

former_member335553
Active Contributor
0 Kudos

u have to set in class path folder in ur drive .and then run ur program in command promptC:/<>/lib

Former Member
0 Kudos

hi krishna,

in case if you are not using any editor... you need to put all the libraries in the workspace or current directory where your class file resides..

regards

Ramesh P

former_member335553
Active Contributor
0 Kudos

check this

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

Former Member
0 Kudos

hi krishna,

you can place it in any folder in your local system. But only you have to do is link the location of that library to the java project.

If you are using netweaver developer studio OR eclipse for your java mapping, then

Right click on the java project -


>

1. goto properties option

2. select java build path

3. then on the right pane click the button "Add External JARs"

Cheers!

Ramesh P

Former Member
0 Kudos

Hi Ramesh,

In case I don't use any java editor, then how can I refer to this library? And where should I place that to refer it?

Regards

Krishna.