Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Automator to extract JAR files in the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Automator to extract JAR files in the Finder
Authored by: didde2 on Sep 20, '05 01:10:55PM

This seems like an overkill to me. You do know that a simple rename works too, right? Rename whatever.jar to whatever.zip and just double-click. Voila, Bob's your uncle.

JAR == ZIP-compression in other words.



[ Reply to This | # ]
10.4: Use Automator to extract JAR files in the Finder
Authored by: Anonymous on Sep 21, '05 10:01:40AM

Heck, I'd even call this overkill!

If this is a hint for developers, what developer doesn't have a Terminal window open at any time?

I've got the phrase "jar tvf ..." builtin to my muscle memory.



[ Reply to This | # ]
10.4: Use Automator to extract JAR files in the Finder
Authored by: vocaro on Sep 21, '05 04:24:35PM

If this is a hint for developers, what developer doesn't have a Terminal window open at any time? I've got the phrase "jar tvf ..." builtin to my muscle memory.

As do I. There are a million things you can do from the Terminal, but doing those things from the GUI can be easier and faster.

After all, it's not as simple as you imply. You must first switch to the Terminal, find or open a window so that you have a ready command prompt, switch to the directory containing the JAR, make a directory to hold the extracted files, type "jar xf ../" followed by the name of the JAR, and then switch back to the original directory (so that you don't lose your old context).

The Finder plug-in described in this hint does all those things for you in one step, so you never even have to touch the keyboard. I don't think it's overkill at all.



[ Reply to This | # ]
Terminal savvy
Authored by: sjk on Sep 21, '05 09:12:48PM

But it's also not necessarily as complicated as you imply. :-)



[ Reply to This | # ]
10.4: Use Automator to extract JAR files in the Finder
Authored by: vocaro on Sep 21, '05 04:13:59PM

You do know that a simple rename works too, right? Rename whatever.jar to whatever.zip and just double-click. Voila, Bob's your uncle.

I forgot about that, but I still prefer the Finder plug-in. Renaming the JAR can cause serious problems by preventing Java from finding that JAR. If you want to run the program, you'll have to rename it back to a JAR once again -- yet another step.

In any case, calling it "overkill" is a matter of preference. Selecting a menu item is more convenient for me than renaming the file, since you never have to type a key in order to examine the JAR's structure or open its files.



[ Reply to This | # ]