Minecraft Corrupt Jar After Deleting Meta-inf

I'm trying to install OptiFine on minecraft and I'm taking the following steps:

  1. Open minecraft with archive manager
  2. Delete the Meta-Inf folder
  3. Open OptiFine with archive manager
  4. Copy contents of OptiFine to minecraft archive
  5. Close both archives
  6. Open minecraft with java -jar minecraft.jar
  7. At this point I get `Invalid or corrupt jarfile minecraft(1) (copy).jar!

Even just deleting the meta-inf folder gives me this error. I'm on linux mint 12. Any help is greatly appreciated!


Solution 1:

You must rename it to: minecraft.jar.