How to start java-web-start application and wait until it exits?

I just found out that javaws -wait not doing what it should do on Windows. He will return before the completion of the application.

This error is more than 5 years old and has been closed since 6281477 will not be fixed, so we need a workaround.

I am looking for a clean solution that would be:

  • run unattended (without user intervention):
    • Currently, if the JNLP file is not available, Java will display an error window.
  • If the application does not work for any reason, we need a return code other than 0

It would be preferable to have a cross-platform solution for this Java or Python, but even a batch Windows solution would be acceptable.

+4
source share
1 answer

If you do not want your application to be downloaded from the Internet (which, in your opinion, I assume it is), use javaw instead.

I believe that this will give what you want.

0
source

All Articles