Re: Launching ImageJ from external program
Posted by
Wayne Rasband on
Jan 16, 2006; 8:00pm
URL: http://imagej.273.s1.nabble.com/Launching-ImageJ-from-external-program-tp3703994p3703998.html
> I use Irfanview to view a directory as thumbnails on my W2000
> machine. I'd like to select an image then launch ImageJ.
> Irfanview has the ability to run an external image editor. This
> feature works with "native" windows programs, but fails with
> ImageJ, giving an error that complains about missing ImageJ.cfg and
> launcher.cfg files. Does anyone know what is going on and if there
> is a fix?
The ImageJ Windows launcher (ImageJ.exe) expects its configuration
file (ImageJ.cfg) to be in the current directory. Someone familiar
with C++ could modify the launcher to look for the configuration file
in the c:\Program Files\ImageJ directory if it can't find it in the
current directory. The C++ source code for the launcher is available at
http://www.rolemaker.dk/nonRoleMaker/javalauncher/
marner_java_launcher.htm
This fix would also allow extension associations (i.e.,
assigning .tif to Image) to work.
-wayne