zip « jar « Java I/O Q&A





1. Binary Difference in Zip/Jar file    stackoverflow.com

It seems like building a jar or zip from the exact same source files will always yield a different file. I tried this both using the java jar command, and the ...

2. When does Java's JVM unzip jar files?    stackoverflow.com

Java's jar file format builds off of the zip file format, and supports compression of the class files inside it. When and how does the JVM decide which class files to ...

3. Unziping a file that contains other Zip Files    stackoverflow.com

I'm trying to unzip a files that contain other zip files. My attempt is based on the following Java2s code: http://www.java2s.com/Code/Java/File-Input-Output/LoadresourcefromJarfile.htm. My only difficulty is that when an entry is ...

4. Java/zip: Why are .jar files non-deterministically created?    stackoverflow.com

I never really looked into it but now I realized that I can't easily build two identical .jar files. I mean, if I build twice, without changing anything, I get the exact ...

5. Reading a zip file within a jar file    stackoverflow.com

Previously we had some zip files within our web application. We would want to pares a specific text document within the zip file. This wasn't a problem:

URL url = getClass().getResource(zipfile);
ZipFile zip ...

6. zip and unzip in java    stackoverflow.com

I know that it is an easy task, but after changing my code it stopped working and I can't get it back! I use two functions to zip and unzip, even ...

7. Zipping and Unzipping Jar, It's not the same size!    stackoverflow.com

I'm making a modding application for a game. When I unzip and zip the same files: for some reason although it is open-able with 7Zip, it's not open-able in the actual ...

8. Okay, Unzip Jar, Zip Jar Success! But unzipping it again Fails?    stackoverflow.com

Title says all, Although in the Java Unzipping method it closes and gives this error:

java.io.FileNotFoundException: ##File hierarchy here#\armor (Access is denied)
But if I try to unzip with 7-zip i get these ...

9. Java - Closing Jar Entries causes problems!    stackoverflow.com

Right big problem when it comes to closing an archive entry using Apache Commons Compress API, I absolutely love this. It's helping me achieve direct Zip to Jar streams for speedy ...





10. Using ant to create a distributable zip file with JAR and libraries and doc    stackoverflow.com

I have a library that is typically distributed by making a zip file of the JAR and its dependencies and its javadoc by hand. I would like to automate this task ...

11. JarFile / ZipFile caching?    stackoverflow.com

I need to verify a signed jar from my application. I found I can do it by reading all contents, like this:

public boolean verifyJar(String filePath) {
    try {
 ...

12. How to know whether a zipped file is Jar file or not?    stackoverflow.com

The problem is we try to use JarFile class to determine whether a file is Jar file or not. However, if we do it this way, a docx file will also be ...

13. Ant - Import jar from within a zip file    stackoverflow.com

I want to include a jar file (ant-contrib.jar) in my ant build.xml from within a zip. How can i do that without unzipping the zip file. I have tried to use the ...

14. a question about jar and zip file    coderanch.com

15. Zip And Jar    coderanch.com

16. Finding files inside a jar or zip file    coderanch.com

If I want to find whether a file test.java exists in my c:\ directory, I do File f = new File("c:\test.java"); f.exists(); But If I have that test.java inside a zip file or jar file, how do I find it's existance? I tried doing File f = new File("jar:c:/data.zip!/test.java"); f.exists(); It didn't works. It always return false. Does anyone have any ...





17. How do you Unzip a JAR file    coderanch.com

you need to set your PATH environment variable. i'm no windows guy, but i think how you do it depends on whether you're using NT or 98. PATH tells your system where to look for executables (such as jar) when you try to run them from the command line (err,.. dos prompt.)

18. xxxx.jar seen as xxxx.zip on desktop and won't run    coderanch.com

Running a .jar file (as an executable) on my machine (where I run JGrasp with the SDK loaded) I have no problem. When I post the .jar on my intranet server and download it to a machine where I have only the JRE installed, it is seen as a .zip file and gives me the error message "Could not find the ...

19. add zip or jars to classpath    coderanch.com

20. Problem in unzip using command jar xf in java version "1.4.2" ,at AIX 5.0 platform    coderanch.com

Hi all, I am facing a problem with unzip a zip file using jar command Case:-if I use a zip file which contains folder and files inside Example: 3 files and a folder and 3 files inside the folder i am using command jar xf in java version "1.4.2" ,at AIX 5.0 platform to unzip the zip files Case1-when I create ...

21. change .zip to .jar    forums.oracle.com

22. how to unzip the .jar fils    forums.oracle.com

georgemc wrote: I'm dreading arriving at the Pearly Gates and finding that, actually, you can take it with you. And the entrance fee is enormous. It'll be eternity washing the windscreens of angels for me, unless I learn to tune and maintain harps I suppose Actually, come to think of it, this assumption I'm going upwards is probably stupid anyway After ...

23. Cannot find SRC.ZIP or SRC.JAR    forums.oracle.com

I've got the same problem here. I've downloaded the Sun SDK (Java 6 SDK + Application Server) and there's no src.zip to be found. And don't say I don't know where to look. I do know where to look. I assume it simply doesn't come with the Sun SDK, but instead I will have to download only the JDK.

24. Problem opening a zip file within a jar file    forums.oracle.com

25. Classpath to .jars inside .zip files    forums.oracle.com

I had post something similar to this but this time it's another idea (and another problem) - so, this is not cross-posting. I have this .zip file with 25 .jar files, I want to use it in my Manifest file, but it seems that when the classes are in the .jars and the .jars are in a zip file they are ...

27. How to change a jar file to zip file?    forums.oracle.com

my SAP Netweaver installation program needs to find a JCE policy archive file. I am using Jdk1.4.2_09 and I was told that the JCE is included in the JDK. However, the SAP Netweaver keeps saying the wrong file is given. I want to try to convert the Jar file to Zip file and try whether it works. So please tell me ...