Login  Register

Launching ImageJ on Windows; failing to find ImageJ.cfg or launcher.cfg

Posted by Jeff Brandenburg on Sep 19, 2005; 8:48pm
URL: http://imagej.273.s1.nabble.com/Launching-ImageJ-on-Windows-failing-to-find-ImageJ-cfg-or-launcher-cfg-tp3704841.html

Thanks to Wayne's recent changes, I'm having great success using ImageJ
as a browser helper app, at least under Mac OS.  Unfortunately, my
Windows users aren't having such good luck.  They get an error of the
form "Cannot find ImageJ.cfg or launcher.cfg".  Searching the
mailing-list archive for "ImageJ.cfg" yielded this message from last
year:

> Date:         Fri, 9 Jul 2004 14:54:37 -0500
> From:         Wayne Rasband <[log in to unmask]>
> Subject:      Re: configuration file
> In-Reply-To:  <[log in to unmask]>
>
> > does anyone know if it's possible to modify the ImageJ.exe
> > to specify the path of the ImageJ.cfg file ?
>
> You could edit the ImageJ.exe (Marner Java Launcher) source to
> hardwire the path to the configuration file. The source is available
> at:
>
> http://www.rolemaker.dk/nonRoleMaker/javalauncher/ 
> marner_java_launcher.htm
>
> > I ask that because I want IJ to be the default application for
> > the opening of tif files. Right now, if the tif file is not in the
> > directory where ImageJ.exe ImageJ.cfg are located, there's
> > an error message concerning the location of ImageJ.cfg.
>
> Why not just drag and drop tiff files onto the upper half of the
> "ImageJ" window? -wayne

I'm trying to make ImageJ the default (actually, "helper") app for
opening .ijm files, but the same problem arises.  Recompiling Windows
source for each Windows user won't work out very well for our
deployment plan.

Has anybody found a better way around this problem?  Is there some
canonical place to put ImageJ.cfg so that Windows can find it?  Is
there any other launcher technology I could offer instead?  I'm a
longtime Mac and UNIX user, but more or less a Windows neophyte, so
please don't assume that anything is too obvious to mention. :-)

Thanks...
--
        -jeffB (Jeff Brandenburg, Duke Center for In-Vivo Microscopy)