Login  Register

Re: Commands to a running instance of ImageJ?

Posted by dscho on Aug 15, 2010; 2:48pm
URL: http://imagej.273.s1.nabble.com/Commands-to-a-running-instance-of-ImageJ-tp3687254p3687256.html

Hi Bill,

On Sun, 15 Aug 2010, Bill Mohler wrote:

> I am finding that an instance launched by javaws is not listening
> properly for commands even when the listener is selected once it is
> running. Does jauaws somehow nullify the listener? Is it possible the
> listening instance has a different name than the name by which if was
> called to run?

You mean webstart? Well, there are a few things WebStart cannot do, for
security reasons. And if I am not mistaken, listening on sockets or doing
RMI is one of them. Sorry, I do not remember, I would have to read the
documentation about that.

> Related question: can you give me an example of a command line that
> would normally be caught by a listening instance and executed?


        fiji -eval 'print("Hello, World");'

(It should work with java -Dplugins.dir=/path/to/plugins/ -jar
/path/to/ij.jar -eval 'print("Hello, Bill");' just the same if the socket
listener is enabled.)

Ciao,
Johannes