The Artima Developer Community
Sponsored Link

Java Buzz Forum
Updating JAR files

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Goldy Lukka

Posts: 1008
Nickname: xyling
Registered: Jan, 2004

Goldy Lukka is a Java Developer and an Entrepreneur. He is Founder of xyling.com.
Updating JAR files Posted: Jul 28, 2004 12:34 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Goldy Lukka.
Original Post: Updating JAR files
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Latest Java Buzz Posts
Latest Java Buzz Posts by Goldy Lukka
Latest Posts From Xyling Java Blogs

Advertisement
As is the case for ZIP files, JAR files are used to package multiple files together, such as classes, images, and sounds. You have a choice of tools to create JAR files. You can use the jar command-line tool that comes with the J2SE Software Development Kit (SDK) or you can use the classes in the java.util.jar package. Although the command-line tool allows you to add files to an existing JAR file, there is no way to programmatically add a file. Also, there is no way using the SDK or the command-line tool to delete a single file from a JAR or delete multiple files. Instead, to update an existing JAR file, you must create a new JAR file and copy any desired content from the old JAR file.

This tech tip shows you how to update a JAR file by using java.util.jar package.

[Resource-Type: Tip; Category: Java/J2SE; XRating: 4]

Read: Updating JAR files

Topic: The World of Java printing Previous Topic   Next Topic Topic: Struts 1.2.1 MappingDispatchAction

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use