Re: plugins in Java Web Start
Posted by
Wayne Rasband on
May 04, 2006; 10:03pm
URL: http://imagej.273.s1.nabble.com/plugins-in-Java-Web-Start-tp3690887p3690890.html
This is fixed in ImageJ 1.37e, available at
<
http://rsb.info.nih.gov/ij/notes.html>. ImageJ no longer displays a
"Plugins folder not found" dialog if the plugins folder is missing and
the IJ.runUserPlugIn() method no longer checks for the presence of the
plugins folder.
-wayne
On May 4, 2006, at 11:01 AM, Curtis Rueden wrote:
> Hi,
>
> I'm trying to package ImageJ for use with Java Web Start. I have
> included some user plugins in IJ_Props.txt, and additional JAR files
> containing the corresponding code.
>
> If the plugins folder exists on disk, this scheme works. But if there
> is no plugins folder, the user plugins fail to launch. This behavior
> is due to the following code in IJ's runUserPlugIn method:
>
> if (pluginsDir==null)
> return null;
>
> Is there a reason for this check? Even if the plugins folder is null
> the plugin could still be found by the system classloader (and in my
> case it would be).
>
> My question is: is there a way to specify "no plugins folder" such
> that the "Plugins folder not found" dialog does not appear, and
> bundled user plugins can still function? This could perhaps work by
> setting plugins.dir to "", or some other special value.
>
> I realize I could have a launcher class that creates the plugins
> folder if necessary, but that entails write access to the client
> storage device, which seems like an unnecessary requirement. Another
> solution would be to hack the ImageJ source, but I'd rather be able to
> drop in a new ij.jar when ImageJ is updated and have things
> automatically work.
>
> Thanks,
> -Curtis
>