Page 1 of 1

Want to open your jar file in Mac Lion but don't know how?

Posted: Mon Aug 27, 2012 4:13 am
by ewana1991
Well here's the answer!
first things first, you need to install the unarchiver, which you get by going here: http://itunes.apple.com/us/app/the-unar ... 4353?mt=12 then clicking "view in app store".
it's free, so just install it, you will need to put your apple id password in.
once that's installed you will need to find your .jar folder, which you can get to by opening finder, going to the menu bar at the top of your screen, clicking "go", scrolling down to "go to folder..." and clicking.
this will bring up a window into which you type ~/library
you then go into application support, then minecraft, then the bin folder.
once you've goten here, right click on your minecraft.jar file, go to open with then click theunarchiver, which you should have just installed. this will then create a folder with all the class files in it. at this point, delete your jar file from the Bin folder and rename your new folder minecraft.jar. when your computer asks if you want to do it, say yes. you can now mod your minecraft to your hearts content! :)

youtube tutorial here:
created by Minituff, not myself.

Additionally if you want to make your library folder visible at all times, open finder, go to the menu bar at the top of your screen, clicking "go", scroll down to "go to folder..." and clicking.
this will bring up a window into which you type ~/library.
then drag the folder name from the top of the window down to the favourites list and insert it there :)
youtube tutorial here:


KingSpartacus

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 5:17 am
by eah
I'm not sure about this, but I don't thing installing unarchiver is necessary. It does speed up the process, though.

Just rename the minecraft.jar to minecraft.zip, double click on minecraft.zip and it will extract the contents into a folder. Then, delete the .zip.

In reverse, you would right click on the minecraft or minecraft.jar folder, click "compress folder" or something like that. It'll create a .zip. Delete the folder and rename the .zip to minecraft.jar. Sometimes having it in the .jar form is neccessary to install certain mods like SPC.

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 6:56 am
by Roobean
eah2119 wrote:I'm not sure about this, but I don't thing installing unarchiver is necessary. It does speed up the process, though.

Just rename the minecraft.jar to minecraft.zip, double click on minecraft.zip and it will extract the contents into a folder. Then, delete the .zip.

In reverse, you would right click on the minecraft or minecraft.jar folder, click "compress folder" or something like that. It'll create a .zip. Delete the folder and rename the .zip to minecraft.jar. Sometimes having it in the .jar form is neccessary to install certain mods like SPC.

^

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 8:59 am
by Puged
eah2119 wrote: In reverse, you would right click on the minecraft or minecraft.jar folder, click "compress folder" or something like that. It'll create a .zip. Delete the folder and rename the .zip to minecraft.jar. Sometimes having it in the .jar form is neccessary to install certain mods like SPC.
Actually a slight correction. To get the folder back into a jar file you can't simply right click the folder and compress it. Doing this gives you a zipped folder with the class files inside of that, instead of just the zipped class files. You have to go into the mincraft folder with all the class files, select all the class files with Cmd+A (or top bar 'Edit' - 'Select All'), then right click the group of selected class files and do compress. It creates a file called Archive.zip in the folder. Scroll down to find it. Take Archive.zip and put it in your Bin folder where the minecraft.jar used to be. And THEN you rename the Archive.zip to minecraft.jar and agree to change the ending to .jar instead of .zip. :|

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 10:08 am
by alexrybicki
Jar files = Zip files. There is no difference.
When they made java, they decided that .java files = uncompressed code. Class = compressed module/class files which basically consists of Java bytecode. The way they decided to structure all of these module/class files is within a zip file, to both have one place to put it all, and compress the data. Java Virtual Machine recognizes these zip files named .jar, looks inside, and executes the code. If you're interested in it, there's a million free java books/videos online.

Long story short, any program that is able to handle zip files will be able to unzip jar files. You just have to associate file types. You should be able to use the unzip command from a BASH CLI, but then I use linux instead of mac, so I'm not really sure.

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 10:10 am
by ewana1991
guys, enough techno babble, basically my way works for those Mac users out there who want a quick and easy method and who don't want to have mess around too much :)

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 10:17 am
by eah
On a side note, I think alexrybicki has just locked in his position for future Intelli sidekick! XD

Re: Want to open your jar file in Mac Lion but don't know ho

Posted: Mon Aug 27, 2012 1:38 pm
by Exekiel
Tip 1: Unarchiver as stated above, not required.

Tip 2: Library is in your 'go' menu, but hidden. Click go then hold option to reveal Library =D