File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
jQuery in Action, 2nd edition
 
subject: How to modify Execuatable Jar file??????????
 
Similar Threads
ERROR: Jar files and manifest probs
How to create an executable in java
Accessing contents of a jar file
can run on eclispe but not command line
JAR and Class file reader