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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -