aspose file tools*
The moose likes Java in General and the fly likes How to modify Execuatable Jar file?????????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to modify Execuatable Jar file??????????" Watch "How to modify Execuatable Jar file??????????" New topic
Author

How to modify Execuatable Jar file??????????

Parshuram Walunjkar
Ranch Hand

Joined: Jan 02, 2002
Posts: 31
Hi All
I am trying updating the Login.jar file.It gives such exception.

C:\TEMP>jar -uvf Login.jar mclasses\prop12.txt
adding: mclasses/prop12.txt(in = 241) (out= 107)(deflated 55%)
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)

How can I modify the jar file.
waiting for reply,
Regards from
Parshuram Walunjkar
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Hmm, it's hard to tell what the cause might be. It's been a while since I've really used java.io seriously, but I'm wondering if it's a file access problem, e.g.g the files is read only, the file is currently in use and so it's locked.
--Mark
Nayanjyoti Talukdar
Ranch Hand

Joined: Feb 12, 2002
Posts: 71
Hi,
I agree with Mark 'coz I tried to update a jar file with the same command. It's working fine!! So, I think the problem with the permission only.
------------
Nayan.
 
Don't get me started about those stupid light bulbs.
 
subject: How to modify Execuatable Jar file??????????