title: Editing a class file in jar
body: <p>I know that editing a class file in jar can be easily done by first converting jar to a zip file, then extracting the zip and finally decompiling the class file in order to edit it. After editing, I do all the above steps in reverse and finally replace the new jar file with the old one. <br>
  I tried the above, but it seems that after replacing the edited jar file with the new one, my java project in eclipse doesn't recognize the jar file! First, I thought the problem is the way I decompile the class file in jar; but later I found out it is not and I have the same problem even without decompiling the class file and editing it. <br>So if I have a simple jar file and convert it to a zip file and then without any further steps I convert it back to the jar file I don't have any problem. But if I have a simple jar file and try to convert it to a zip file and then extract it; again I compress it back to zip and convert it to jar my eclipse cannot recognize the jar file! <br> So to me the problem is when I compress the folder back to a zip file! What could be the problem here? Is it the compression tool that I use?</p>