Do I have to explicitly call System.exit() in a Webstart application?

后端 未结 5 1313
心在旅途
心在旅途 2021-01-12 04:49

Recently I converted a Swing application to Webstart. The process was pretty straightforward, but I found that after I close all windows, my application\'s JVM did not termi

5条回答
  •  深忆病人
    2021-01-12 05:42

    Webstart starts the Console window (you may be able to disable that). The console window is used to see stdout/err of the webstart process as well as rudimentary log/debug but has the side effect of created a top-level AWT/Swing window. Since the AWT/EDT only ends when the LAST window is disposed, the console window is holding up your application. You should probably call System.exit() to be 100% sure your application exits (unless you can gurantee a certain client configuration, webstart console turned off)

提交回复
热议问题