The shutdown key is not executed when the application is launched using javaw.exe

If I use javaw.exe to start a Java application, the stop hook is not executed when users log out of their Windows account. The application actually starts using the start4j .exe file created, but I know that javaw.exe uses it to run it.

This seems to be a known bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4302814

Has anyone else had this problem? If so, how did you fix it?

Thank!

+2
source share
1 answer

The application actually launches using the .exe file launched by start4j, but I know that it uses javaw.exe to run it.

launch4j , , . jvm, javaw.

java.exe javaw.exe , java.exe . , ( , ) , Sun, , , Windows. , , java.exe, WM_MESSAGES , .

, - "headerType" launch4j "console". , .

, - , Windows .

+2

Source: https://habr.com/ru/post/1790056/


All Articles