Q
qazmlp
Is there any option which disables the automatic creation of
non-existing directories, while unarchiving a .jar file?
Here is what my jar file contains:
user@machine: jar tf myArchive.jar
META-INF/
META-INF/MANIFEST.MF
src/../intf/myModule.class
src/myConstants.class
src/myImpl.class
And, here is what the error message that is reported:
user@machine: jar xvf myArchive.jar
created: META-INF/
inflated: META-INF/MANIFEST.MF
java.io.IOException: src/../intf/ : could not create directory
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at sun.tools.jar.Main.extractFile(Compiled Code)
at sun.tools.jar.Main.extract(Compiled Code)
at sun.tools.jar.Main.run(Main.java:190)
at sun.tools.jar.Main.main(Main.java:778)
What is the root-cause of this error? How do I circumvent it?
non-existing directories, while unarchiving a .jar file?
Here is what my jar file contains:
user@machine: jar tf myArchive.jar
META-INF/
META-INF/MANIFEST.MF
src/../intf/myModule.class
src/myConstants.class
src/myImpl.class
And, here is what the error message that is reported:
user@machine: jar xvf myArchive.jar
created: META-INF/
inflated: META-INF/MANIFEST.MF
java.io.IOException: src/../intf/ : could not create directory
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at sun.tools.jar.Main.extractFile(Compiled Code)
at sun.tools.jar.Main.extract(Compiled Code)
at sun.tools.jar.Main.run(Main.java:190)
at sun.tools.jar.Main.main(Main.java:778)
What is the root-cause of this error? How do I circumvent it?