I created a jar using following command: jar cf test.jar *.*
But when I extract it using: jar xf test.jar
It just generates one META-INF folder and MANIFEST.MF file inside it. Where are html files and images?
Thanks!
ankur rathi
Ranch Hand
Posts: 3851
posted 13 years ago
Sorry guys.
It actually overrided old files (since I unzipped in the same folder).
Ulf Dittmer
Rancher
Posts: 43016
76
posted 13 years ago
You can use "jar tf test.jar" to list the contents of the jar file. If you use "jar xf" right after "jar cf", then all files in the directory will be overwritten by the contents of the jar file, so you wouldn't notice any additional files.
hi to all, I've submitted my assignment this morning, the jar with "jar cvf scea-xxxx.jar scea-xxxx/*"
only one doubt, if you use "jar xf scea-xxx.jar" you can see all the files in the cwd, but if you extract with winrar/winzip su see a dir scea-xxxx that contains all the files.
It's ok or I've made a mistake? :-S
Thanks in advance.
I once met a man from Nantucket. He had a tiny ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop