When the change of the manifest file of jar is reflected by the following command,
jar -cfm Main.jar main.mf *.class
You need to put a blank line at the end of the jar manifest file.
main.mf
Main-Class : Main
If there is no blank line at the end of the sentence as shown below
main.mf
Main-Class : Main
Changes to the jar manifest file are not reflected.
At this time, no error message was displayed, so I was addicted to it when I was a beginner.
Modifying a Manifest File (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files) https://docs.oracle.com/javase/tutorial/deployment/jar/modman.html
Recommended Posts