Error: Invalid or Corrupt Jarfile — How to Fix It
Java found the file but can't read it as a JAR. Spot an HTML page saved as .jar, a cut-off download or a Git LFS pointer, then get a working copy of server.jar.
Step 1: Check the File Online
Step 2: Look at the First Bytes
Step 3: Get a Complete Copy
Step 4: If the Archive Is Fine
A Different Error? Check Which One You Have
Summary