cancel
Showing results for 
Search instead for 
Did you mean: 

Using external jars in Java Mapping jar archive

Former Member
0 Kudos

Hello experts,

we want to create a Java Mapping and in the corresponding jar file external libraries will be used. Is it possible to add a library (like iText or Apache POI) to the Java Mapping jar file? I don't want to add such libraries to the standard class path.

When I add them to the lib folder of the mapping jar, the mapping doesn't work and I get a class not found exception?

Best regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You can create in individual object "imported archive" for every library that you reference.

You can access the imported archive of the same SWVC/namespace in every Java Mapping, XSLT mapping or graphical mapping (e.g. UDF).

Regards

Stefan

Former Member
0 Kudos

Hi,

I've included the external jars as imported archive in the PI 7.0 system it worked for me.

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

Use NWDS whenever developing Mappings or Module for XI.

In anycase, you can add any kind of external jars and compile it.

Shabarish_Nair
Active Contributor
0 Kudos

For your ref: /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi

In step 2 you will find the option of adding additional jars.