Generate .JAR from IntelliJ
问题 I am attempting to create a JAR from IntelliJ using the build artifacts but when I do it is saying Error: Invalid or corrupt jarfile Im not sure what im doing wrong though? 回答1: Hard to tell from what you have posted. Intellij can be finicky at times especially with the Artifact jar build interface. There is a good tutorial on IntelliJ's website on how to set up the artifact. One area that may provide difficulty is pointing to the Main Class. An issue I had in building a jar using the tool