Login  Register

Re: Install plugin command should allow .zip files

Posted by Michael Schmid on Apr 25, 2014; 3:47pm
URL: http://imagej.273.s1.nabble.com/Install-plugin-command-should-allow-zip-files-tp5007432p5007435.html

Hi Johannes,

hmmm, I would not consider it a bug that ImageJ recognizes .zip files as .jar.  For me, if's quite handy, also apart from the problem of distributing plugins via email:

If I have a few class files that I want to bundle with a plugins.config (to get the 'arg' strings for calling the plugins, and to get them into the correct menus), I simply mark them and zip them from the context menu, and then move the .zip into the plugins directory of ImageJ.

If ImageJ should adopt a strict interpretation of what a .jar file should look like, I would miss this!

Thus, this 'bug' makes life easier for me.

Michael
________________________________________________________________
On Apr 25, 2014, at 17:18, Johannes Schindelin wrote:

> Hi Jon,
>
> On Fri, 25 Apr 2014, Jon Harman wrote:
>
>> I have changed the .jar suffix for my plugin to .zip when emailing it
>> since many email providers will not accept .jar files.  This works fine
>> and is recognized as a plugin by ImageJ.  So the plugin installer should
>> recognize .zip.
>
> While it is true that every .jar file is also a .zip file, the converse is
> not true.
>
> Therefore, what you ask for would introduce a bug. (That ImageJ recognizes
> .zip files as .jar files is a very notable bug, too.)
>
> The correct way to resolve your issue is for the recipients of said mail
> to rename the file back.
>
> Ciao,
> Johannes
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html