I am trying to extract the contents of .ear file into another file. Is there any existing library which helps me to achieve this?
            Asked
            
        
        
            Active
            
        
            Viewed 4,006 times
        
    -1
            
            
        - 
                    Asking for libraries is explicitly off topic. – Charles McKelvey Sep 19 '16 at 17:18
 - 
                    An ear file is just a zip fie. Use the Java zip API – jalynn2 Sep 19 '16 at 17:19
 - 
                    replace .zip with .ear in the filename string http://www.codejava.net/java-se/file-io/programmatically-extract-a-zip-file-using-java – flakes Sep 19 '16 at 17:20
 - 
                    Possible duplicate of [What is a good Java library to zip/unzip files?](http://stackoverflow.com/questions/9324933/what-is-a-good-java-library-to-zip-unzip-files) – acm Sep 19 '16 at 17:21
 - 
                    Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. – techydesigner Sep 19 '16 at 22:49
 
1 Answers
0
            
            
        jar, war, and ear files are all just zip files with a different extension. As such, they can be processed with the classes in the java.util.zip package that comes with the SDK.
        user3745362
        
- 229
 - 1
 - 5