How do you recompile a jar file?
问题 I took an old jar file and edited it. Now i have a folder that has all the files and I want to recompile them back to a jar file. How do i do this? 回答1: Jar files aren't "compiled" in the normal sense of the word. But you just create one with the jar command: jar cvf myfile.jar file1 file2 etc You can use globbing as normal: jar cvf ../myfile.jar * Run jar -? or read the docs for more information. Note that for an executable jar file, you'll need to specify the manifest file as well. 回答2: How