The jarsigner error: java.lang.RuntimeException: keystore load: invalid keystore format occurs when the keystore file you're trying to load is not in the expected format. This usually happens if:
Incorrect Keystore Type: You are using a keystore in a different format than expected (e.g., trying to load a JKS keystore as a PKCS12 keystore).
Corrupted Keystore: The keystore file may be corrupted or incomplete.
Wrong File: You might be specifying the wrong file or path for the keystore.
Solutions:
Verify the keystore file type and ensure it matches the expected format (e.g., use -storetype JKS for JKS or -storetype PKCS12 for PKCS12).
Confirm the integrity of the keystore file.
Double-check the path and file name to ensure you are referencing the correct keystore.