What to do if the changes are not reflected in the jar manifest file

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.

reference

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

What to do if the changes are not reflected in the jar manifest file
What to do when the changes in the Servlet are not reflected
What to do if changes are not reflected after automatic deployment to EC2
What to do if the prefix c is not bound in JSP
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
[Swift] What to do if the app icon is set but not reflected
What to do if you are told "there is no main manifest attribute" when creating a jar file containing dependencies in a maven project
[Rails] What to do if data is not registered in DB
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if Cloud9 is full in the Rails tutorial
What to do if the Eclipse Maven dependency Jar is wrong
What to do when Rails on Docker does not reflect controller changes in the browser
What to do if you forget the root password in CentOS7
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if the background image is not applied after deployment
What to do if the server tomcat dies
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do when rails db: seed does not reflect in the database
What to do if the debug gem installation fails
How to debug the generated jar file in Eclipse
What to do if password authentication fails in Docker/Postgres
What to do if you get Could not save master table to file after importing a project in Eclipse
What to do if the update does not take effect after deploying Rails AWS
What to do if you can't get the text of an element in Selenium
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the breakpoint is shaded and does not stop during debugging
[Java] What to do if the contents saved in the DB and the name of the enum are different in the enum that reflects the DB definition
What to do if you get a java.io.IOException in GlassFish
What to do when Method not found in f: ajax
What to do if audio is not available on discordrb
What to do if FacesMessage is set but not displayed
If the submodule assets are not found in the Play Framework
What to do if the adb command cannot be executed
Check if Ethereum transactions are not included in the block
What to do if you can't use the rails command
What to do if you don't see the test code error message in the terminal console
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if you installed Ruby with rbenv but the version does not change
What you need to do to open a file from the menu in the document-Based App macOS app
Memo that transitions to the login screen if you are not logged in with devise
How to make a jar with old Hadoop (hadoop-core-0.20.2-cdh3u6) in Gradle: (What to do if you get Could not expand ZIP ..)
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
What are the rules in JUnit?
What to do if you get a gcc error in Docker
What to do if validation doesn't work with the update action
[Gradle] The story that the class file did not exist in the jar file
What to do if you get a DISPLAY error in gym.render ()
Add a time stamp to the JAR file name in Gradle
Determine if the strings to be compared are the same in Java
[Logback] What to do if unnecessary files do not disappear during rotation
What happened to the typical changes in Apache Wicket 8 after all?
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do when "relation" hibernate_sequence "does not exist" in the ID column of PostgreSQL + JPA
What to do about the "cannot be read or is not a valid ZIP file" error
What to do if the app is not created with the latest Rails version installed when rails new
What to do if you get "Changes not staged for commit:" when you git status after git add.
What to do if Could not find hoge in any of the sources Run `bundle install` to install missing gems. Appears in the docker container
How to add jar file in ScalaIDE
What to do if you can't install the plugin from the Eclipse marketplace
What to do if the image posted by refile disappears after setting a 404 error page in Rails
What to do if deployment fails on Heroku (Ruby app not detected)