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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -