It is not allowed to rename or repackage the original archive "sapjco3.jar"

853 Views Asked by At

I am using sapjco3.jar in my project and it is working fine on Eclipse.

However, when I try to make it as an executable (I just right click on my Eclipse project and export it as a runnable jar, I only added the jar into the build path so that I can use its classes), it is not working. I managed to find that it throws an error:

It is not allowed to rename or repackage the original archive "sapjco3.jar"

Has anyone found any fix for this? All I find were regarding maven build but I do not know what to do when I'm just doing a simple runnable jar.

Does anyone know what to do?

NB: my Eclipse project doesn't have MANIFEST.MF.

1

There are 1 best solutions below

4
On

The simple answer is: Do not rename the original archive "sapjco3.jar". Keep the files in their original form like they are published by SAP.

I don't know what you are exactly doing when you say: "when I try to make it as an executable"?