Dear all,
having recorded, edited, tested a macro under LINUX I was happy, because it works fine. Also the GUI-less mode (starting imagej -b macro.ijm from terminal and falling back to command line) works as is wished.
PROBLEM now:
Same procedure under WINDOWS XP doesn't fall back to the command line, but remain hanging in ImageJ's GUI.
There are no error messages.
Thanks for reaching a helpfull hand.
Andy
|
Hi Andy,
On Tue, 19 Feb 2013, Andy wrote: > Dear all,having recorded, edited, tested a macro under LINUX I was > happy, because it works fine. Also the GUI-less mode (starting imagej -b > macro.ijm from terminal *and falling back to command line*) works as is > wished.PROBLEM now:Same procedure under WINDOWS XP doesn't fall back to > the command line, but remain hanging in ImageJ's GUI.There are no error > messages.Thanks for reaching a helpfull hand.Andy You could investigate by installing the JDK and inspecting the thread dump using jvisualvm. Or simply tell ImageJ to quit at the end of the macro: run("Quit"); Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Danke for quick reply !
1.
The "run("Quit");"-option did not have any effect at all, nor under WINDOWS,
nor under LINUX.
2.
My nightly dirty solution was to shoot ImageJ/Java after the macro has finished
it's work by windowing like "taskkill /F /IN javaw.exe".
3.
Thanks for the JDK-Tip ! This will be my next approach to create clean code.
I'll keep you informed about my creatures.
Andy
--
Andreas eMail
Am 19.02.2013, 15:28 Uhr, schrieb "Johannes Schindelin [via ImageJ]" <[hidden email]>:
Hi Andy, -- http://www.fastmail.fm - The way an email service should be |
In reply to this post by Andy
On Feb 19, 2013, at 6:43 AM, Andy wrote:
> Dear all,having recorded, edited, tested a macro under LINUX I was happy, > because it works fine. Also the GUI-less mode (starting imagej -b macro.ijm > from terminal *and falling back to command line*) works as is wished.PROBLEM > now:Same procedure under WINDOWS XP doesn't fall back to the command line, > but remain hanging in ImageJ's GUI.There are no error messages.Thanks for > reaching a helpfull hand.Andy This appears to be a problem with the ImageJ Windows launcher (ImageJ.exe). You can avoid the problem by using the 'java' command instead of the 'imagej' command, for example by using jre\bin\java -jar ij.jar -batch macro.ijm This is essentially the same command you would use on Linux. It assumes that the current directory is the ImageJ folder and that there is a macro named 'macro.ijm' in the ImageJ\macros folder. -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Good morning Wayne !
1.
Many thanks for your support - it helped to 150%, because it eliminated another issue,
which I didn't indicate here: The File.delete(...) did not work before. Now it works too.
2.
Now the macro runs, cleans up temporary files, closes, leaves ImageJ/Java by running "Quit".
No more Redmondish "taskkill" or "del" necessary.
Thanks, Wayne
thanks Johannes !
Andy
--
Andreas eMail
Am 20.02.2013, 16:28 Uhr, schrieb "Rasband, Wayne (NIH/NIMH) [E] [via ImageJ]" <[hidden email]>:
On Feb 19, 2013, at 6:43 AM, Andy wrote: -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow |
Free forum by Nabble | Edit this page |