0

com.sap cannot be resolved to a type error in Eclipse

 1 year ago
source link: https://answers.sap.com/questions/12511517/comsap-cannot-be-resolved-to-a-type-error-in-eclip.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Search Questions and Answers
Former Member
Jul 23, 2016 at 01:32 PM

com.sap cannot be resolved to a type error in Eclipse

1542 Views


Hello Experts,



The Import statement com.sap.aii.mapping.api.StreamTransformation is not recognizing in Eclipse. I have added the jar file through he below steps but still not working. Can somebody suggest me how to fix this. PFA for proof of error & jar file.

Project->Java Build Path->Libraries->Add External JARs..



Thanks.



Attachments

jar.JPG (13.1 kB)
error.JPG (12.6 kB)
3 Answers
Sort by:
Jul 23, 2016 at 05:32 PM

Hello Yogesh,

It looks like you added ZIP files to the build path - instead, please add corresponding JAR files. If they were earlier zipped and placed in ZIP archives, please unzip them and use obtained JAR files when adjusting build path.

To simplify process of adding required SAP standard mapping libraries to the build path of your mapping project, in NWDS, in build path configuration screen, use Add Library > XPI Library > library type: XPI Mapping Libraries instead of adding individual JAR files manually. NWDS already ships with libraries required for most common PI/PO development tasks (like those required for mappings and adapter modules development) - and, assuming you are using the version of NWDS compliant to the target PI/PO system, this approach helps you to avoid necessity of manually retrieving respective libraries from the PI/PO server and amending build path with them.

Regards,

Vadim

1 comment
Jul 24, 2016 at 03:30 PM

Hi Yogesh,

Unzip and import the jar file as per your server version . Generally for StreamTransformation below are required -

aii.map.api

lib.mod

svc_api

ms_ifc

But StreamTransformation generally not used now, rather you use AbstractTransformation and can write your logic in method Transform().

Thanks,

Former Member
Former Member
Jul 25, 2016 at 08:12 PM

Hi Vadim/Apu,

I see an issue with the JVM(from Oracle).To support Java mapping do I need JVM from SAP? I got this suggestion from the NWDS .

Regards,

Yogesh

1 comment
Jul 25, 2016 at 08:24 PM

Hello Yogesh,

An issue you described with referenced libraries, has nothing to do with the supportability of JDK used by NWDS - in sense of the cause of the originally reported problem, they are not dependent on each other.

You are not limited to using only SAP JVM/JDK with NWDS (even though it is one of possible and favored options) - depending on NWDS version, you may find different compliant JDK versions: as a starting point, you may want to check blog Stop using the wrong NWDS version! © - Have a smoother Eclipse experience written by Eng Swee Yeoh - he provides recommendations and examples on which JDK is compatible with recent NWDS releases and what are common rules about choosing appropriate JDK.

Regards,

Vadim


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK