Two Laptop Bag*
The moose likes Beginning Java and the fly likes how to extract multi files from a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to extract multi files from a jar file" Watch "how to extract multi files from a jar file" New topic
Author

how to extract multi files from a jar file

Howie Jiang
Greenhorn

Joined: Aug 25, 2003
Posts: 26
I am trying to extract some files from a jar file using
jar xf xxx.jar

I have some problems here.

1) how can I extract all the files with ending .properties? I try "jar xf xxx.jar com/aaa/bbb/*.properties", but failed.

2) how can I avoid specify the full path? for example extract all the property files in any path.

Any one can help? Thanks very much
[ March 16, 2005: Message edited by: Howie Jiang ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to extract multi files from a jar file