wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to modify Execuatable Jar file??????????" Watch "How to modify Execuatable Jar file??????????" New topic

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

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.
Nayanjyoti Talukdar
Ranch Hand

Joined: Feb 12, 2002
Posts: 71
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.
subject: How to modify Execuatable Jar file??????????
Similar Threads
How to create an executable in java
Accessing contents of a jar file
JAR and Class file reader
ERROR: Jar files and manifest probs
can run on eclispe but not command line