-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use java.exe when --headless and --run are set #47
Comments
The launcher, unless it is "falling back to system java", does not use |
Hi guys, this is really beyond my expertise, but on my windows system the usage of
generates the following output:
This cause the described issues in: http://forum.imagej.net/t/need-help-with-exiting-python-script/7832/8 And when I change javaw against java the issue is gone. So what exactly is changed when using one vs. the other. My Fiji comes with its own java located in c:\Users\Public\Documents\Fiji\java\win64\jdk1.8.0_66\jre. Let me know, if I can be of any further help. |
@sebi06 Thanks for your comment. Indeed, I am sorry, but I am far from a Windows expert, and do not have time to troubleshoot this issue this year. If someone who knows the Windows native environment would care to file a PR against the ImageJ launcher, though, that would certainly be appreciated. In the meantime, invoking |
If you remove the |
Another report of a similar issue (that I'll leave here for reference): https://forum.image.sc/t/console-application-doesnt-exit/19791/ |
At least on Windows 10 (haven't tested other versions) the following call will not return even if the Jython script exits:
The problem can be remedied by using
java.exe
instead ofjavaw.exe
in the aforementioned configuration. That is, I would expect the ImageJ process to exit when a script that I execute with--headless --run
exits.See also:
The text was updated successfully, but these errors were encountered: