Re: Ubuntu - Run single instance listener
Posted by
Ghislain BUGNICOURT-2 on
May 05, 2011; 9:04am
URL: http://imagej.273.s1.nabble.com/Ubuntu-Run-single-instance-listener-tp3684690p3684698.html
Le 05/05/2011 10:03, Johannes Schindelin a écrit :
> Hi,
>
> On Wed, 4 May 2011, Ghislain Bugnicourt wrote:
>
>> [...] at this line,
>> sendArgument("user.dir "+System.getProperty("user.dir"));
>> an exception is generated. It says :
>> java.net.ConnectException: Connection refused
> You could try the following:
>
> try {
> sendArgument("user.dir "+System.getProperty("user.dir"));
> } catch (java.net.ConnectException e) {
> ij.IJ.wait(1000); // wait a sec!
> sendArgument("user.dir "+System.getProperty("user.dir"));
> }
>
> and see whether a delay fixes the problem.
>
> Ciao,
> Johannes
Hi !
Still doesn't work :(
Just to be sure :
- I had to replace your "java.net.ConnectException e" by "IOException
e", unless it told be the exception wasn't caught.
- I tried catching an exception the second time, after the delay, and
it is generated again.
- I changed the delay up to 4 sec.
I'm dowloading the source code to start again because I already made
many ineffective changes in Imagej.java.
Other ideas ?
Thks for your help !
PS : I am now on Ubuntu 11.04, no difference