Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I write to XML file which is packed in JAR file using JDOM?

Status
Not open for further replies.

Gjj

Programmer
Sep 23, 2005
15
YU
How can I write to XML file which is packed in JAR file using JDOM?
I tried something with EntityResolver but I didn’t succeed?

Does anybody have some example?
 
Well, you can extract it from the jar, manipulate it as a regular xml file and get it into the jar again.

Cheers,
Dian
 
Is there any other solution?
 
I don't think you can manipulate the contents of a jar file without extracting them first. You can do this programmaticaly though.

Cheers,
Dian
 
Whether you have a tool which you find which can "replace a file within a jar" or not - at some point, that file is going to HAVE to be unarchived, the file modified, and then re-archived. There is no way around it !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top