Login  Register

Re: Ubuntu - Run single instance listener

Posted by Ghislain BUGNICOURT-2 on May 04, 2011; 3:10pm
URL: http://imagej.273.s1.nabble.com/Ubuntu-Run-single-instance-listener-tp3684690p3684696.html

Le 29/04/2011 10:31, Johannes Schindelin a écrit :
> I am afraid that this means that the imagej executable does not hand
> ImageJ options to ImageJ properly. So you need to call ImageJ thusly:
>
> java -jar ij.jar -debug -port1<image-file>
>
> Ciao,
> Johannes

Hi !

I'm still looking for a way to make the instance listener work with Ubuntu.

I realized that the error obviously stands in the "isRunning(args)"
method in the file ImageJ.java .
Actually, at this line,
     sendArgument("user.dir "+System.getProperty("user.dir"));
an exception is generated. It says :
     java.net.ConnectException: Connection refused
As a result, isRunning always returns "false", with or without arguments
(images or options if I understood well).

It's probably normal, but imagej won't even start if I comment the line.
Changing "user.dir " to "user.dir" has no effect either.
It's all I could try !

What should I do now ?

Regards,
Ghislain