Several instances of imagej from plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Several instances of imagej from plugin

feelc
Hi!

I'm trying to run more than one imageJ instance of imagej.

To be more concise from within a plugin I want to call a pair of imagej
headless instances while retaining control of them through a pointer to
each instance or messages.
(I may try object serialization and watchfolder but I don't like that idea
much...).

Is it possible with ImageJ now? I remember it had singleton- static
listeners issues avoiding it.
If it is possible how would you do it? Is it possible to run an instance
isolated in a thread?
The streams I get from the process with:* Process
IJprocess=Runtime.getRuntime().exec("java
-jar +ijPath"**); *are not enough.

Besides how do you get imageJ to run a plugin on startup? I tried things
like below without luck:
*Process IJprocess=Runtime.getRuntime().exec("java -jar "+ijPath+"
Test_Plugin.jar");*

Thanks a lot for your time,

Felipe Contreras

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