dcsimg
Adding new .class to 'live' jar file
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tim_Daplyn
Posted On:   Friday, May 31, 2002 08:45 AM

Can anyone tell me how to add a new class to an existing Jar file which is in use?

I want to be able to add to the jar whilst there is an application running which is using the jar (I cannot bring the application down and restart it), but it seems the jvm holds the jar file open so I can't add anything to it. I get the following message:


			
C:mystuff>jar uf MyJar.jar MyNewClass.class

java.io.IOException: Error in writing existing jar file

at sun.tools.jar.Main.run(Main.java:179)

at sun.tools.jar.Main.main(Main.java:904)
About | Sitemap | Contact