Hey, I was planning to make a client/server mod for 1.4.5, but first I need to know how to convert a .zip to a .jar. I know a person who uses the computer alot (like me) should know how to but I dont. herp derp
First, you will need to install 7-Zip, a nifty little archive tool. It is available here: www.7-zip.org . Extract the contents of the zip file by right-clicking on it, and selecting "7 - Zip > extract files". This will create a folder with the files in it. Open the folder, and select all of the files. Right click and select "7-Zip > add to archive". In the settings box that follows, set your compression type to ".jar". Once it is finished, you should have your jar file.
EDIT: You might be able to replace the ".zip" extension with the ".jar" extension. Try that first.
Rollback Post to RevisionRollBack
"I'm sorry, Dave, but this post can serve no purpose anymore."
If you're just wanting a .jar file that contains files like a .zip file does, you can follow mehwaif's instructions. If you're wanting to make a runnable .jar file, you'll need to use Java commands from the JDK (which can be done from Eclipse and NetBeans).
EVERY jar file is by definition a zip file. People that claim their jar files "became a zip file" only see that because the system they are on is smart enough to know this, either because they have a third party program installed on Windows that associated with jar files, or if you are running on *nix or Mac, it is able to see from the file header that it's a jar file.
Since a jar file is a zip file, the idea of converting between the two makes no sense at all.
EVERY jar file is by definition a zip file. People that claim their jar files "became a zip file" only see that because the system they are on is smart enough to know this, either because they have a third party program installed on Windows that associated with jar files, or if you are running on *nix or Mac, it is able to see from the file header that it's a jar file.
Since a jar file is a zip file, the idea of converting between the two makes no sense at all.
so your saying if you use a .zip file where a .jar file is needed it would work?
This thread has been idle for 17 months. Can't you leave a dead thread in peace?
Anyway. All jars are zips, not all zips are jars. Just like all dogs are mammals, but not all mammals are dogs.
When some broken browser (I'm looking at you Internet Explorer), saves a jar file with a zip extension, it is a trivial matter to rename it to fix it, since you did in fact download a jar file. Just like if you ask someone to buy you a puppy and they give you one and say "Here's a mammal for you" doesn't mean you didn't get what you wanted.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
EDIT: You might be able to replace the ".zip" extension with the ".jar" extension. Try that first.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumSince a jar file is a zip file, the idea of converting between the two makes no sense at all.
Anyway. All jars are zips, not all zips are jars. Just like all dogs are mammals, but not all mammals are dogs.
When some broken browser (I'm looking at you Internet Explorer), saves a jar file with a zip extension, it is a trivial matter to rename it to fix it, since you did in fact download a jar file. Just like if you ask someone to buy you a puppy and they give you one and say "Here's a mammal for you" doesn't mean you didn't get what you wanted.