cancel
Showing results for 
Search instead for 
Did you mean: 

Java to XI

Former Member
0 Kudos

I have written a small program in Java and I have complied it and created the CLASS file.

This java program I am planning to use in the Message Mapping.

Now if I want to bring this Java program into XI what are the steps I need to do. Please note, I am not a Java expert so I would greatly appreciate a step by step approach.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohini,

The java program which you are planning to use in Message Mapping can be done by putting the code in as a User Defined Function in you message mapping and used.

Cheers

JK

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Mohini,

Look at my answer for this thread.

Mickael

Former Member
0 Kudos
bhavesh_kantilal
Active Contributor
0 Kudos

Mohini,.

Create a JAR file out of your Java Class and then import it under Imported Archives in your Software Componenet and use the same as your Message Mapping by dragging and dropping it in Interface Mapping.

Regards,

Bhavesh

Former Member
0 Kudos

Thanks a lot Bhavesh. How to create a JAR file in Java?

Thnaks.

Shabarish_Nair
Active Contributor
0 Kudos

if you are using NDS then you can use Export -> as a Jar file.

Former Member
0 Kudos

Shabarish could you be more clear? I am not clear with what you are saying.

Thanks

Shabarish_Nair
Active Contributor
0 Kudos

how are you creating your java code ?

Are you using Netweaver developer studio (NDS) ?

in tht case all u need is to right click the .java from the package explorer and then Export -> JAR.

Else if it is any other editor just search its help it will tell u how to create a JAR.

bhavesh_kantilal
Active Contributor
0 Kudos

Mohini,

Like mentioned, if your are using MWDS then right click on the project and save export as jar.

Also, you can create a .zip file and use the same also.

Regards,

Bhavesh