java - How do you recompile a jar file? -
I took an old jar file and edited it. Now I have a folder that contains all the files and I want to recompile them in a jar file. How do i do this
Jar files are not "compiled" in the usual meaning of the word. But you can simply create one with the jar
command:
jar cvf myfile.jar file1 file2 etc
You can create globbing Normally you can use:
jar cvf ../myfile.jar *
play jar -?
or read more for more information.
Note that for the executable jar file, you must also specify the manifest file.
Comments
Post a Comment