Skip to content
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

showConsoleWindow=false causes JavaFx window to start minimized #64

Open
leif81 opened this issue Apr 23, 2018 · 4 comments · May be fixed by #65
Open

showConsoleWindow=false causes JavaFx window to start minimized #64

leif81 opened this issue Apr 23, 2018 · 4 comments · May be fixed by #65

Comments

@leif81
Copy link

leif81 commented Apr 23, 2018

A side effect of using the showConsoleWindow option set to false is that it causes JavaFx application windows to start minimized. To me this is unexpected.

The problem seems to be the /min part of the line JAVACMD=start /min javaw. When /min is removed it behaves as expected for both JavaFx and Swing (tested in Java 8u161).

Workaround

In my environmentSetupFileName script, I put set JAVACMD=start javaw.

@leif81
Copy link
Author

leif81 commented Apr 23, 2018

Btw the /min fix was discovered by @seanidzenga 👍

@leif81
Copy link
Author

leif81 commented Apr 25, 2018

The problematic line seems to be

But from the surrounding context it looks like the intent was to run the process in the background. Not sure how to proceed on this one.

@dantran
Copy link
Contributor

dantran commented Apr 26, 2018

It was set to run in background since swing application blocks the shell. Maybe this behavior is no longer with java8?

@leif81
Copy link
Author

leif81 commented Apr 26, 2018

Ya it must have changed. I tried the same workaround (removing /min) with a Swing app in Java 8 and it worked as expected.

@leif81 leif81 linked a pull request May 1, 2018 that will close this issue
seanidzenga pushed a commit to seanidzenga/appassembler that referenced this issue Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants