Error while updating a jar file

I am trying to update a jar file using teh following command
jar -uf project.jar fileMy.prop
however while doing that i get the following error
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)
Advertisement
Reply

Perhaps some process (your java program perhaps) is still running that has the file open still? You'll need to shut down the process(es) that have it open. Or you don't have proper rights to the directory/file. Not a java issue.