Plugin Problem: a reader plugin is not available

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin Problem: a reader plugin is not available

GAUTAM SHANKAR
Hello,

I developed a plugin in java.. using imageJ source code etc.

***// Here are some of the lines in this plugin:
 File directory = new File(dir);
               File[] list = directory.listFiles();


The plugin works fine when I run it through java.

When I copy the plugin to the imageJ directory and into the plugins folder,
I get an error

***What this plugin does is open a series of images and crops them according
to edge detection criteria.**

It opens the first image, then it fails.

here is the error:

FIle is not in a supporter format, a reader plugin is not available, or it
was not found.

-Gautam Shankar
Reply | Threaded
Open this post in threaded view
|

Re: Plugin Problem: a reader plugin is not available

dscho
Hi,

On Thu, 12 Aug 2010, GAUTAM SHANKAR wrote:

> FIle is not in a supporter format, a reader plugin is not available, or
> it was not found.

I guess that this really reads

        File is not in a supported format, a read plugin is not available,
        or it was not found.

Because that is the message the Opener falls back to when it did not find
an appropriate reader plugin for a given file:

        http://pacific.mpi-cbg.de/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=ij/io/Opener.java;hb=refs/heads/master#l189

Of course, you could output in your Java code what file it is about to
open so you know which file is meant. I could imagine that you iterate
over the contents of a directory and forgot to skip "." and "..".

But all this is speculation because you were pretty avaricious about the
source code in question.

Hth,
Johannes