How do I change a folder to a jar?
Compress the contents of the folder then rename the .zip to .jar
From terminal
use:
jar -cvf filename.jar ./foldername
jar
works much the same as the unix archive command tar
, the parameters cvf
mean essentially Create Verbosely Filename which will just display the contents of foldername
as they are added into filename.jar
.
Instead of create you can use x
for extract or t
for test extract (aka list).