Technique to use when there is a missing file in the completed jar file or you want to change the property a little
If you want to update the file, display the list of files in the jar and check the path of the target file
jar tf XXXX.jar
For example, how to add log4j.propreties to the root directory of jar as follows
jar uvf XXXX.jar log4j.properties
If it is in a subdirectory of a directory, dig the directory at hand, place the file, and then execute the command.
For example, like this. If you want to update the java file, compile java at hand to generate a class file and then update (.java file should not work)
jar uvf XXXX.jar org/apache/log4j/FileAppender.class
Recommended Posts