• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question regarding a JAR

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jar called: securityFile.jar and this jar has multiple folders & files.

In in the src file called securityFile-src.zip and there is a file in that zip that I am needing to modify and put back into the securityFile.jar.

How can I accomplish this? I've googled for awhile and I see how to jar a project in Eclipse to execute but I've never had to get a file out of the securityFile-src.zip and then put it back into the jar.

Any help/direction would be appreciated. Regards.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Un-jar it, un-zip the zip, modify the file, re-zip, re-jar.

No good reason to do any of that in Eclipse if there isn't already an Ant/etc. task to do it automatically.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is quite a lot about jars in this section of the Java™ Tutorials.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic