cancel
Showing results for 
Search instead for 
Did you mean: 

Java "import" for XI mapping - Error: The import com.sap cannot be resolved

Former Member
0 Kudos

Guys,

I created a Java Project in NWDS and I get an error on the

"import com.sap.aii.mapping.api.StreamTransformation;" line: The import com.sap cannot be resolved

What am I missing?

It's probably something basic, I'm doing my baby steps in both NWDS and Java.

Thanks a lot,

Viktor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Viktor,

You have not set the classpath. For this :

1. Get the file aii_map_api.jar from XI server (if you have not done this already).

2. Create a new folder in the Java project you have created for mapping program. Name it as "lib"(any name would do..I just try to follow widely used naming conventions).

3.Copy the jar file aii_map_api.jar to this folder.(You can copy it in explorer and go to NWDS, select the lib folder and do a Ctrl + V).

4. Right click on the java project, select properties. Select Java build path. Go to Libraries tab. Click on the button "Add jars". In the dialog that pops up select your java project> lib> aii_map_api.jar.

5. Click apply / OK.

Former Member
0 Kudos

Thank you Amol,

Simple steps they seem except "Get the file aii_map_api.jar from XI server".

Where is it? Do you know the directory path?

How do I "get it"? Should I just FTP it over or

is there an easier way to do it?

Thanks a lot,

Viktor

Former Member
0 Kudos

Pls look for the jar file in the path...

\usr\sap\<SYSID>\DVEBMGS<sysnr>\j2ee\cluster\server0\apps\sap.com\com.sap.xi.services

Thanks,

Renjith

Former Member
0 Kudos

Amol/Renjith,

Thanks a lot, both of you guys!

Regards,

Viktor

Former Member
0 Kudos

Hi Viktor,

You are most welcome. Glad that i was able to help.

Thanks,

Renjith

Answers (0)