i have a folder on my desktop named theme.I am new to Linux totally. So what do I do to create a jar file from this folder? I found this example but It doesn't work for me.
jar -cvf theme.jar
Jar files are really just zip
files, renamed to .jar
. Just use any folder zipping tool (such as the zip
command).
zip -r theme.jar /path/to/desktop/theme
You are failing to specify the input files for the jar.
Navigate to the theme/ directory using the cd
command in Terminal. If you want to include everything in this directory in your jar file, use the following command.
jar cvf theme *
Note that the *
character (wildcard) indicates you want to include all files and subdirectories.
See: http://docs.oracle.com/javase/tutorial/deployment/jar/build.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.