Compressing an Extracted Jar File

Fatih Yakut picture Fatih Yakut · Jun 18, 2014 · Viewed 7.9k times · Source

I have extracted a jar file and made some change on it. Now, how can i compress again it as an executable jar file?

Thanks.(Sorry for my bad english.)

Answer

Kasper Ziemianek picture Kasper Ziemianek · Jun 18, 2014

Try :

jar cf jar-file input-file(s)

according to http://docs.oracle.com/javase/tutorial/deployment/jar/build.html