Re: a small bug in the new launcher

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/Re-a-small-bug-in-the-new-launcher-tp5003541.html

Hi Jerome,

On Thu, 20 Jun 2013, Jerome Mutterer wrote:

> I think that the new launcher that is now shipped with the 1.47 windows
> installer disregards the -Dplugins.dir command line option.
>
> What I did to test this:
>
> - installed on windows from
> http://jenkins.imagej.net/job/ImageJ1-releases/label=Windows/34/
> - edited the ImageJ.cfg file to include -Dplugins.dir=C:\jerome
> - start ImageJ.exe : plugins are loaded from ImageJ folder.
>
> renaming ImageJ.exe to debug.exe produces the following output:
>
> Found Java options in ImageJ.cfg: '-Xmx768m -Dplugins.dir=C:\jerome ij.jar'
> JRE found in 'C:\DOCUME~1\ADMINI~1\Desktop\IMAGEJ~3/jre'
> javaw -Dplugins.dir=C:\\jerome ij.jar -Dpython.cachedir.skip=true
> -Dplugins.dir=
> C:\\DOCUME~1\\ADMINI~1\\Desktop\\IMAGEJ~3 -Xmx768m -Xincgc
> -XX:PermSize=128m .....
>
> Where you can see that the option is found in the cfg file, but passed
> *twice* to the javaw command.
> I suppose that the second default occurrence overwrites the correct first
> one.

Thanks for reporting this. I will take care of it later today.

For the future, please do not keep such reports secret: other people might
have the same problem, and in order to avoid wasting their time, it would
be good to have the record on the mailing list, also for people who might
Google for the same problem later. It is called "Open" Source for a reason
;-)

Thanks,
Johannes

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