Search code examples
javajarmanifestleanft

LeanFT TestExportTool - Invalid signature file digest for Manifest main attributes


I use UFT 14.02 and installed LeanFT with same installer. TestExportTool gives error message below when I execute command:

java -jar "C:\Program Files (x86)\HP\LeanFT\Tools\TestExportTool\test-export-tool.jar" "C:\LeanFT\MyTestNGTests.jar" -classpath:"C:\TestNG\testng.jar"

Invalid signature file digest for Manifest main attributes

I generated artifact with IntelliJ IDEA from TestNG test cases.


Solution

  • Unsign the jar. Here's how I did that

    1. Make a backup of the jar
    2. If you have 7zip (or similar), you can open the .jar as an archive
    3. Navigate to META-INF folder
    4. Delete the signature files (e.g. .SF and .DSA files)

    But there are other variances of this: